Class XrSceneMeshMSFT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSceneMeshMSFT>
org.lwjgl.openxr.XrSceneMeshMSFT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSceneMeshMSFT extends org.lwjgl.system.Struct<XrSceneMeshMSFT> implements org.lwjgl.system.NativeResource
Scene mesh.
Valid Usage (Implicit)
See Also

XrSceneMeshesMSFT

Layout


 struct XrSceneMeshMSFT {
     uint64_t meshBufferId();
     XrBool32 supportsIndicesUint16();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MESHBUFFERID
      The struct member offsets.
    • SUPPORTSINDICESUINT16

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

    • XrSceneMeshMSFT

      public XrSceneMeshMSFT(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrSceneMeshMSFT>
    • 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.
    • meshBufferId

      public XrSceneMeshMSFT meshBufferId(long value)
      Sets the specified value to the meshBufferId() field.
    • supportsIndicesUint16

      public XrSceneMeshMSFT supportsIndicesUint16(boolean value)
      Sets the specified value to the supportsIndicesUint16() field.
    • 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

      public static @Nullable 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(int capacity)
      Returns a new XrSceneMeshMSFT.Buffer instance allocated with BufferUtils.
      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

      public static @Nullable 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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.