Package org.lwjgl.openvr
Class RenderModel
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RenderModel>
org.lwjgl.openvr.RenderModel
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Layout
struct RenderModel_t {
RenderModel_Vertex_t const * rVertexData();
uint32_t unVertexCount();
uint16_t const * IndexData();
uint32_t unTriangleCount();
TextureID_t diffuseTextureId();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRenderModel(ByteBuffer container) Creates aRenderModelinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderModelcreate(long address) Returns a newRenderModelinstance for the specified memory address.static RenderModel.Buffercreate(long address, int capacity) Create aRenderModel.Bufferinstance at the specified memory.static @Nullable RenderModelcreateSafe(long address) static @Nullable RenderModel.BuffercreateSafe(long address, int capacity) intSession unique texture identifier.Indices into the vertex data for each trianglestatic intndiffuseTextureId(long struct) Unsafe version ofdiffuseTextureId().static ShortBuffernIndexData(long struct) Unsafe version ofIndexData.static RenderModelVertex.BuffernrVertexData(long struct) Unsafe version ofrVertexData().static intnunTriangleCount(long struct) Unsafe version ofunTriangleCount().static intnunVertexCount(long struct) Unsafe version ofunVertexCount().Vertex data for the meshintsizeof()intNumber of triangles in the mesh.intNumber of vertices in the vertex dataMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RVERTEXDATA
public static final int RVERTEXDATAThe struct member offsets. -
UNVERTEXCOUNT
public static final int UNVERTEXCOUNTThe struct member offsets. -
INDEXDATA
public static final int INDEXDATAThe struct member offsets. -
UNTRIANGLECOUNT
public static final int UNTRIANGLECOUNTThe struct member offsets. -
DIFFUSETEXTUREID
public static final int DIFFUSETEXTUREIDThe struct member offsets.
-
-
Constructor Details
-
RenderModel
Creates aRenderModelinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<RenderModel>
-
rVertexData
Vertex data for the mesh -
unVertexCount
public int unVertexCount()Number of vertices in the vertex data -
IndexData
Indices into the vertex data for each triangle -
unTriangleCount
public int unTriangleCount()Number of triangles in the mesh. Index count is 3 * TriangleCount. -
diffuseTextureId
public int diffuseTextureId()Session unique texture identifier. Rendermodels which share the same texture will have the same id. 0 == texture not present. -
create
Returns a newRenderModelinstance for the specified memory address. -
createSafe
-
create
Create aRenderModel.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nrVertexData
Unsafe version ofrVertexData(). -
nunVertexCount
public static int nunVertexCount(long struct) Unsafe version ofunVertexCount(). -
nIndexData
Unsafe version ofIndexData. -
nunTriangleCount
public static int nunTriangleCount(long struct) Unsafe version ofunTriangleCount(). -
ndiffuseTextureId
public static int ndiffuseTextureId(long struct) Unsafe version ofdiffuseTextureId().
-