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

public class RenderModel extends org.lwjgl.system.Struct<RenderModel>

Layout


 struct RenderModel_t {
     RenderModel_Vertex_t const * rVertexData();
     uint32_t unVertexCount();
     uint16_t const * IndexData();
     uint32_t unTriangleCount();
     TextureID_t diffuseTextureId();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • RVERTEXDATA

      public static final int RVERTEXDATA
      The struct member offsets.
    • UNVERTEXCOUNT

      public static final int UNVERTEXCOUNT
      The struct member offsets.
    • INDEXDATA

      public static final int INDEXDATA
      The struct member offsets.
    • UNTRIANGLECOUNT

      public static final int UNTRIANGLECOUNT
      The struct member offsets.
    • DIFFUSETEXTUREID

      public static final int DIFFUSETEXTUREID
      The struct member offsets.
  • Constructor Details

    • RenderModel

      public RenderModel(ByteBuffer container)
      Creates a RenderModel instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<RenderModel>
    • rVertexData

      public RenderModelVertex.Buffer rVertexData()
      Vertex data for the mesh
    • unVertexCount

      public int unVertexCount()
      Number of vertices in the vertex data
    • IndexData

      public ShortBuffer 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

      public static RenderModel create(long address)
      Returns a new RenderModel instance for the specified memory address.
    • createSafe

      public static @Nullable RenderModel createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static RenderModel.Buffer create(long address, int capacity)
      Create a RenderModel.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable RenderModel.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nrVertexData

      public static RenderModelVertex.Buffer nrVertexData(long struct)
      Unsafe version of rVertexData().
    • nunVertexCount

      public static int nunVertexCount(long struct)
      Unsafe version of unVertexCount().
    • nIndexData

      public static ShortBuffer nIndexData(long struct)
      Unsafe version of IndexData.
    • nunTriangleCount

      public static int nunTriangleCount(long struct)
      Unsafe version of unTriangleCount().
    • ndiffuseTextureId

      public static int ndiffuseTextureId(long struct)
      Unsafe version of diffuseTextureId().