Package org.lwjgl.openvr
Class RenderModelVertex
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.RenderModelVertex
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class RenderModelVertex extends org.lwjgl.system.StructA single vertex in a render model.Member documentation
vPosition– position in meters in device space
Layout
struct RenderModel_Vertex_t {HmdVector3_tvPosition;HmdVector3_tvNormal; float rfTextureCoord[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderModelVertex.BufferAn array ofRenderModelVertexstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intRFTEXTURECOORDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVNORMAL
VPOSITIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description RenderModelVertex(java.nio.ByteBuffer container)Creates aRenderModelVertexinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RenderModelVertexcreate(long address)Returns a newRenderModelVertexinstance for the specified memory address.static RenderModelVertex.Buffercreate(long address, int capacity)Create aRenderModelVertex.Bufferinstance at the specified memory.static RenderModelVertexcreateSafe(long address)static RenderModelVertex.BuffercreateSafe(long address, int capacity)static java.nio.FloatBuffernrfTextureCoord(long struct)Unsafe version ofrfTextureCoord().static floatnrfTextureCoord(long struct, int index)Unsafe version ofrfTextureCoord.static HmdVector3nvNormal(long struct)Unsafe version ofvNormal().static HmdVector3nvPosition(long struct)Unsafe version ofvPosition().java.nio.FloatBufferrfTextureCoord()Returns aFloatBufferview of therfTextureCoordfield.floatrfTextureCoord(int index)Returns the value at the specified index of therfTextureCoordfield.intsizeof()HmdVector3vNormal()Returns aHmdVector3view of thevNormalfield.HmdVector3vPosition()Returns aHmdVector3view of thevPositionfield.
-
-
-
Constructor Detail
-
RenderModelVertex
public RenderModelVertex(java.nio.ByteBuffer container)
Creates aRenderModelVertexinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
vPosition
public HmdVector3 vPosition()
Returns aHmdVector3view of thevPositionfield.
-
vNormal
public HmdVector3 vNormal()
Returns aHmdVector3view of thevNormalfield.
-
rfTextureCoord
public java.nio.FloatBuffer rfTextureCoord()
Returns aFloatBufferview of therfTextureCoordfield.
-
rfTextureCoord
public float rfTextureCoord(int index)
Returns the value at the specified index of therfTextureCoordfield.
-
create
public static RenderModelVertex create(long address)
Returns a newRenderModelVertexinstance for the specified memory address.
-
createSafe
@Nullable public static RenderModelVertex createSafe(long address)
-
create
public static RenderModelVertex.Buffer create(long address, int capacity)
Create aRenderModelVertex.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static RenderModelVertex.Buffer createSafe(long address, int capacity)
-
nvPosition
public static HmdVector3 nvPosition(long struct)
Unsafe version ofvPosition().
-
nvNormal
public static HmdVector3 nvNormal(long struct)
Unsafe version ofvNormal().
-
nrfTextureCoord
public static java.nio.FloatBuffer nrfTextureCoord(long struct)
Unsafe version ofrfTextureCoord().
-
nrfTextureCoord
public static float nrfTextureCoord(long struct, int index)Unsafe version ofrfTextureCoord.
-
-