Class XrSceneMeshIndicesUint32MSFT

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

public class XrSceneMeshIndicesUint32MSFT extends org.lwjgl.system.Struct<XrSceneMeshIndicesUint32MSFT> implements org.lwjgl.system.NativeResource
Scene mesh 32-bit indices.
Valid Usage (Implicit)
See Also

XrSceneMeshBuffersMSFT, GetSceneMeshBuffersMSFT

Layout


 struct XrSceneMeshIndicesUint32MSFT {
     XrStructureType type();
     void * next();
     uint32_t indexCapacityInput();
     uint32_t indexCountOutput();
     uint32_t * indices();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • INDEXCAPACITYINPUT

      public static final int INDEXCAPACITYINPUT
      The struct member offsets.
    • INDEXCOUNTOUTPUT

      public static final int INDEXCOUNTOUTPUT
      The struct member offsets.
    • INDICES

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

    • XrSceneMeshIndicesUint32MSFT

      public XrSceneMeshIndicesUint32MSFT(ByteBuffer container)
      Creates a XrSceneMeshIndicesUint32MSFT 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<XrSceneMeshIndicesUint32MSFT>
    • type

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or a pointer to the next structure in a structure chain.
    • indexCapacityInput

      public int indexCapacityInput()
      the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
    • indexCountOutput

      public int indexCountOutput()
      the count of indices, or the required capacity in the case that indexCapacityInput is insufficient.
    • indices

      public @Nullable IntBuffer indices()
      an array of triangle indices filled in by the runtime, specifying the indices of the scene mesh buffer in the vertices array. The triangle indices must be returned in counter-clockwise order and three indices denote one triangle.
    • type

      public XrSceneMeshIndicesUint32MSFT type(int value)
      Sets the specified value to the type() field.
    • type$Default

      public XrSceneMeshIndicesUint32MSFT type$Default()
      Sets the TYPE_SCENE_MESH_INDICES_UINT32_MSFT value to the type() field.
    • next

      public XrSceneMeshIndicesUint32MSFT next(long value)
      Sets the specified value to the next() field.
    • indexCapacityInput

      public XrSceneMeshIndicesUint32MSFT indexCapacityInput(int value)
      Sets the specified value to the indexCapacityInput() field.
    • indexCountOutput

      public XrSceneMeshIndicesUint32MSFT indexCountOutput(int value)
      Sets the specified value to the indexCountOutput() field.
    • indices

      public XrSceneMeshIndicesUint32MSFT indices(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the indices() field.
    • set

      public XrSceneMeshIndicesUint32MSFT set(int type, long next, int indexCapacityInput, int indexCountOutput, @Nullable IntBuffer indices)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

      public static XrSceneMeshIndicesUint32MSFT.Buffer create(int capacity)
      Returns a new XrSceneMeshIndicesUint32MSFT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

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

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

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

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

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nindexCapacityInput

      public static int nindexCapacityInput(long struct)
      Unsafe version of indexCapacityInput().
    • nindexCountOutput

      public static int nindexCountOutput(long struct)
      Unsafe version of indexCountOutput().
    • nindices

      public static @Nullable IntBuffer nindices(long struct)
      Unsafe version of indices.
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • nindexCapacityInput

      public static void nindexCapacityInput(long struct, int value)
      Sets the specified value to the indexCapacityInput field of the specified struct.
    • nindexCountOutput

      public static void nindexCountOutput(long struct, int value)
      Unsafe version of indexCountOutput.
    • nindices

      public static void nindices(long struct, @Nullable IntBuffer value)
      Unsafe version of indices.