Class RenderModelVertex

  • All Implemented Interfaces:

    public class RenderModelVertex
    extends Struct
    A single vertex in a render model.

    Member documentation

    • vPosition – position in meters in device space


     struct RenderModel_Vertex_t {
         HmdVector3_t vPosition;
         HmdVector3_t vNormal;
         float rfTextureCoord[2];
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • RenderModelVertex

        public RenderModelVertex​(java.nio.ByteBuffer container)
        Creates a RenderModelVertex 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • rfTextureCoord

        public java.nio.FloatBuffer rfTextureCoord()
        Returns a FloatBuffer view of the rfTextureCoord field.
      • rfTextureCoord

        public float rfTextureCoord​(int index)
        Returns the value at the specified index of the rfTextureCoord field.
      • create

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

        public static RenderModelVertex createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        public static RenderModelVertex.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • nrfTextureCoord

        public static java.nio.FloatBuffer nrfTextureCoord​(long struct)
        Unsafe version of rfTextureCoord().
      • nrfTextureCoord

        public static float nrfTextureCoord​(long struct,
                                            int index)
        Unsafe version of rfTextureCoord.