Class XrHandMeshVertexMSFT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • POSITION, NORMAL

        The struct member offsets.
    • Constructor Detail

      • XrHandMeshVertexMSFT

        public XrHandMeshVertexMSFT​(java.nio.ByteBuffer container)
        Creates a XrHandMeshVertexMSFT 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • position$

        public XrVector3f position$()
        an XrVector3f structure representing the position of the vertex in the hand mesh space, measured in meters.
      • normal

        public XrVector3f normal()
        an XrVector3f structure representing the unweighted normal of the triangle surface at the vertex as a unit vector in hand mesh space.
      • malloc

        public static XrHandMeshVertexMSFT malloc()
        Returns a new XrHandMeshVertexMSFT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrHandMeshVertexMSFT calloc()
        Returns a new XrHandMeshVertexMSFT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrHandMeshVertexMSFT create()
        Returns a new XrHandMeshVertexMSFT instance allocated with BufferUtils.
      • create

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

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

        public static XrHandMeshVertexMSFT malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandMeshVertexMSFT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrHandMeshVertexMSFT calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandMeshVertexMSFT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static XrHandMeshVertexMSFT.Buffer malloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandMeshVertexMSFT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static XrHandMeshVertexMSFT.Buffer calloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandMeshVertexMSFT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nposition$

        public static void nposition$​(long struct,
                                      XrVector3f value)
        Unsafe version of position$.
      • nnormal

        public static void nnormal​(long struct,
                                   XrVector3f value)
        Unsafe version of normal.