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.Struct
A single vertex in a render model.Member documentation
vPosition
– position in meters in device space
Layout
struct RenderModel_Vertex_t {
HmdVector3_t
vPosition;HmdVector3_t
vNormal; float rfTextureCoord[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RenderModelVertex.Buffer
An array ofRenderModelVertex
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
RFTEXTURECOORD
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VNORMAL
VPOSITIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description RenderModelVertex(java.nio.ByteBuffer container)
Creates aRenderModelVertex
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RenderModelVertex
create(long address)
Returns a newRenderModelVertex
instance for the specified memory address.static RenderModelVertex.Buffer
create(long address, int capacity)
Create aRenderModelVertex.Buffer
instance at the specified memory.static RenderModelVertex
createSafe(long address)
static RenderModelVertex.Buffer
createSafe(long address, int capacity)
static java.nio.FloatBuffer
nrfTextureCoord(long struct)
Unsafe version ofrfTextureCoord()
.static float
nrfTextureCoord(long struct, int index)
Unsafe version ofrfTextureCoord
.static HmdVector3
nvNormal(long struct)
Unsafe version ofvNormal()
.static HmdVector3
nvPosition(long struct)
Unsafe version ofvPosition()
.java.nio.FloatBuffer
rfTextureCoord()
Returns aFloatBuffer
view of therfTextureCoord
field.float
rfTextureCoord(int index)
Returns the value at the specified index of therfTextureCoord
field.int
sizeof()
HmdVector3
vNormal()
Returns aHmdVector3
view of thevNormal
field.HmdVector3
vPosition()
Returns aHmdVector3
view of thevPosition
field.
-
-
-
Constructor Detail
-
RenderModelVertex
public RenderModelVertex(java.nio.ByteBuffer container)
Creates aRenderModelVertex
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
vPosition
public HmdVector3 vPosition()
Returns aHmdVector3
view of thevPosition
field.
-
vNormal
public HmdVector3 vNormal()
Returns aHmdVector3
view of thevNormal
field.
-
rfTextureCoord
public java.nio.FloatBuffer rfTextureCoord()
Returns aFloatBuffer
view of therfTextureCoord
field.
-
rfTextureCoord
public float rfTextureCoord(int index)
Returns the value at the specified index of therfTextureCoord
field.
-
create
public static RenderModelVertex create(long address)
Returns a newRenderModelVertex
instance 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.Buffer
instance 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
.
-
-