Package org.lwjgl.openvr
Class RenderModelVertex.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<RenderModelVertex,RenderModelVertex.Buffer>
-
- org.lwjgl.openvr.RenderModelVertex.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<RenderModelVertex>,org.lwjgl.system.Pointer
- Enclosing class:
- RenderModelVertex
public static class RenderModelVertex.Buffer extends org.lwjgl.system.StructBuffer<RenderModelVertex,RenderModelVertex.Buffer>
An array ofRenderModelVertexstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBufferrfTextureCoord()Returns aFloatBufferview of therfTextureCoordfield.floatrfTextureCoord(int index)Returns the value at the specified index of therfTextureCoordfield.HmdVector3vNormal()Returns aHmdVector3view of thevNormalfield.HmdVector3vPosition()Returns aHmdVector3view of thevPositionfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newRenderModelVertex.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byRenderModelVertex.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
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.
-
-