Class XrSceneMeshMSFT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MESHBUFFERID, SUPPORTSINDICESUINT16

        The struct member offsets.
    • Constructor Detail

      • XrSceneMeshMSFT

        public XrSceneMeshMSFT​(java.nio.ByteBuffer container)
        Creates a XrSceneMeshMSFT 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
      • meshBufferId

        public long meshBufferId()
        the uint64_t identifier that specifies the scene mesh buffer. If meshBufferId is zero then this scene component does not have mesh data of corresponding XrSceneComponentTypeMSFT in GetSceneComponentsMSFT::getInfo.
      • supportsIndicesUint16

        public boolean supportsIndicesUint16()
        TRUE if the mesh supports reading 16-bit unsigned indices.
      • set

        public XrSceneMeshMSFT set​(long meshBufferId,
                                   boolean supportsIndicesUint16)
        Initializes this struct with the specified values.
      • set

        public XrSceneMeshMSFT set​(XrSceneMeshMSFT src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

        public static XrSceneMeshMSFT.Buffer malloc​(int capacity)
        Returns a new XrSceneMeshMSFT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static XrSceneMeshMSFT.Buffer calloc​(int capacity)
        Returns a new XrSceneMeshMSFT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

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

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

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

        public static XrSceneMeshMSFT.Buffer calloc​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new XrSceneMeshMSFT.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
      • nmeshBufferId

        public static long nmeshBufferId​(long struct)
        Unsafe version of meshBufferId().
      • nsupportsIndicesUint16

        public static int nsupportsIndicesUint16​(long struct)
        Unsafe version of supportsIndicesUint16().
      • nmeshBufferId

        public static void nmeshBufferId​(long struct,
                                         long value)
        Unsafe version of meshBufferId.
      • nsupportsIndicesUint16

        public static void nsupportsIndicesUint16​(long struct,
                                                  int value)
        Unsafe version of supportsIndicesUint16.