Class XrRoomMeshMETA

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrRoomMeshMETA extends Struct<XrRoomMeshMETA> implements NativeResource
struct XrRoomMeshMETA {
    XrStructureType type;
    void * next;
    uint32_t vertexCapacityInput;
    uint32_t vertexCountOutput;
    XrVector3f * vertices;
    uint32_t faceCapacityInput;
    uint32_t faceCountOutput;
    XrRoomMeshFaceMETA * faces;
}
  • 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.
    • VERTEXCAPACITYINPUT

      public static final int VERTEXCAPACITYINPUT
      The struct member offsets.
    • VERTEXCOUNTOUTPUT

      public static final int VERTEXCOUNTOUTPUT
      The struct member offsets.
    • VERTICES

      public static final int VERTICES
      The struct member offsets.
    • FACECAPACITYINPUT

      public static final int FACECAPACITYINPUT
      The struct member offsets.
    • FACECOUNTOUTPUT

      public static final int FACECOUNTOUTPUT
      The struct member offsets.
    • FACES

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

    • XrRoomMeshMETA

      public XrRoomMeshMETA(ByteBuffer container)
      Creates a XrRoomMeshMETA 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrRoomMeshMETA>
    • type

      @NativeType("XrStructureType") public int type()
      Returns:
      the value of the type field.
    • next

      @NativeType("void *") public long next()
      Returns:
      the value of the next field.
    • vertexCapacityInput

      @NativeType("uint32_t") public int vertexCapacityInput()
      Returns:
      the value of the vertexCapacityInput field.
    • vertexCountOutput

      @NativeType("uint32_t") public int vertexCountOutput()
      Returns:
      the value of the vertexCountOutput field.
    • vertices

      @NativeType("XrVector3f *") public @Nullable XrVector3f.Buffer vertices()
      Returns:
      a XrVector3f.Buffer view of the struct array pointed to by the vertices field.
    • faceCapacityInput

      @NativeType("uint32_t") public int faceCapacityInput()
      Returns:
      the value of the faceCapacityInput field.
    • faceCountOutput

      @NativeType("uint32_t") public int faceCountOutput()
      Returns:
      the value of the faceCountOutput field.
    • faces

      @NativeType("XrRoomMeshFaceMETA *") public @Nullable XrRoomMeshFaceMETA.Buffer faces()
      Returns:
      a XrRoomMeshFaceMETA.Buffer view of the struct array pointed to by the faces field.
    • type

      public XrRoomMeshMETA type(@NativeType("XrStructureType") int value)
      Sets the specified value to the type field.
    • type$Default

      public XrRoomMeshMETA type$Default()
      Sets the TYPE_ROOM_MESH_META value to the type field.
    • next

      public XrRoomMeshMETA next(@NativeType("void *") long value)
      Sets the specified value to the next field.
    • vertexCapacityInput

      public XrRoomMeshMETA vertexCapacityInput(@NativeType("uint32_t") int value)
      Sets the specified value to the vertexCapacityInput field.
    • vertexCountOutput

      public XrRoomMeshMETA vertexCountOutput(@NativeType("uint32_t") int value)
      Sets the specified value to the vertexCountOutput field.
    • vertices

      public XrRoomMeshMETA vertices(@NativeType("XrVector3f *") @Nullable XrVector3f.Buffer value)
      Sets the address of the specified XrVector3f.Buffer to the vertices field.
    • faceCapacityInput

      public XrRoomMeshMETA faceCapacityInput(@NativeType("uint32_t") int value)
      Sets the specified value to the faceCapacityInput field.
    • faceCountOutput

      public XrRoomMeshMETA faceCountOutput(@NativeType("uint32_t") int value)
      Sets the specified value to the faceCountOutput field.
    • faces

      public XrRoomMeshMETA faces(@NativeType("XrRoomMeshFaceMETA *") @Nullable XrRoomMeshFaceMETA.Buffer value)
      Sets the address of the specified XrRoomMeshFaceMETA.Buffer to the faces field.
    • set

      public XrRoomMeshMETA set(int type, long next, int vertexCapacityInput, int vertexCountOutput, @Nullable XrVector3f.Buffer vertices, int faceCapacityInput, int faceCountOutput, @Nullable XrRoomMeshFaceMETA.Buffer faces)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrRoomMeshMETA.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrRoomMeshMETA.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().
    • nvertexCapacityInput

      public static int nvertexCapacityInput(long struct)
      Unsafe version of vertexCapacityInput().
    • nvertexCountOutput

      public static int nvertexCountOutput(long struct)
      Unsafe version of vertexCountOutput().
    • nvertices

      public static @Nullable XrVector3f.Buffer nvertices(long struct)
      Unsafe version of vertices().
    • nfaceCapacityInput

      public static int nfaceCapacityInput(long struct)
      Unsafe version of faceCapacityInput().
    • nfaceCountOutput

      public static int nfaceCountOutput(long struct)
      Unsafe version of faceCountOutput().
    • nfaces

      public static @Nullable XrRoomMeshFaceMETA.Buffer nfaces(long struct)
      Unsafe version of faces().
    • 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.
    • nvertexCapacityInput

      public static void nvertexCapacityInput(long struct, int value)
      Sets the specified value to the vertexCapacityInput field of the specified struct.
    • nvertexCountOutput

      public static void nvertexCountOutput(long struct, int value)
      Unsafe version of vertexCountOutput.
    • nvertices

      public static void nvertices(long struct, @Nullable XrVector3f.Buffer value)
      Unsafe version of vertices.
    • nfaceCapacityInput

      public static void nfaceCapacityInput(long struct, int value)
      Sets the specified value to the faceCapacityInput field of the specified struct.
    • nfaceCountOutput

      public static void nfaceCountOutput(long struct, int value)
      Unsafe version of faceCountOutput.
    • nfaces

      public static void nfaces(long struct, @Nullable XrRoomMeshFaceMETA.Buffer value)
      Unsafe version of faces.