Class XrWorldMeshGetInfoML

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

public class XrWorldMeshGetInfoML extends org.lwjgl.system.Struct<XrWorldMeshGetInfoML> implements org.lwjgl.system.NativeResource
Block Request Info.
Valid Usage (Implicit)
See Also

XrWorldMeshBlockRequestML, RequestWorldMeshAsyncML

Layout


 struct XrWorldMeshGetInfoML {
     XrStructureType type();
     void const * next();
     XrWorldMeshDetectorFlagsML flags();
     float fillHoleLength();
     float disconnectedComponentArea();
     uint32_t blockCount();
     XrWorldMeshBlockRequestML * blocks();
 }
  • 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.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • FILLHOLELENGTH

      public static final int FILLHOLELENGTH
      The struct member offsets.
    • DISCONNECTEDCOMPONENTAREA

      public static final int DISCONNECTEDCOMPONENTAREA
      The struct member offsets.
    • BLOCKCOUNT

      public static final int BLOCKCOUNT
      The struct member offsets.
    • BLOCKS

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

    • XrWorldMeshGetInfoML

      public XrWorldMeshGetInfoML(ByteBuffer container)
      Creates a XrWorldMeshGetInfoML 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<XrWorldMeshGetInfoML>
    • 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.
    • flags

      public long flags()
      are the detector flags defined by XrWorldMeshDetectorFlagBitsML.
    • fillHoleLength

      public float fillHoleLength()
      Any hole which has perimeter (in meters) less than fillHoleLength will be filled. The maximum hole perimeter is limited to 5 meters, the runtime must clamp the value between 0 and 5 meters. Also the maximum area of the hole should not exceed 0.5 square meters. If the hole overlaps with neighboring mesh block(s), it will not be filled in.
    • disconnectedComponentArea

      public float disconnectedComponentArea()
      Any component that is disconnected from the main mesh which has an area (in square meters) less than disconnectedComponentArea will be removed. The maximum area is limited to 2 square meters, and the area needs to exist fully within a mesh block boundary without skirt. The runtime must clamp this value between 0 and 2 square meters.
    • blockCount

      public int blockCount()
      a uint32_t indicating the number of elements in the blocks array.
    • blocks

    • type

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

      public XrWorldMeshGetInfoML type$Default()
      Sets the TYPE_WORLD_MESH_GET_INFO_ML value to the type() field.
    • next

      public XrWorldMeshGetInfoML next(long value)
      Sets the specified value to the next() field.
    • flags

      public XrWorldMeshGetInfoML flags(long value)
      Sets the specified value to the flags() field.
    • fillHoleLength

      public XrWorldMeshGetInfoML fillHoleLength(float value)
      Sets the specified value to the fillHoleLength() field.
    • disconnectedComponentArea

      public XrWorldMeshGetInfoML disconnectedComponentArea(float value)
      Sets the specified value to the disconnectedComponentArea() field.
    • blocks

      Sets the address of the specified XrWorldMeshBlockRequestML.Buffer to the blocks() field.
    • set

      public XrWorldMeshGetInfoML set(int type, long next, long flags, float fillHoleLength, float disconnectedComponentArea, XrWorldMeshBlockRequestML.Buffer blocks)
      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 XrWorldMeshGetInfoML malloc()
      Returns a new XrWorldMeshGetInfoML instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nflags(long struct)
      Unsafe version of flags().
    • nfillHoleLength

      public static float nfillHoleLength(long struct)
      Unsafe version of fillHoleLength().
    • ndisconnectedComponentArea

      public static float ndisconnectedComponentArea(long struct)
      Unsafe version of disconnectedComponentArea().
    • nblockCount

      public static int nblockCount(long struct)
      Unsafe version of blockCount().
    • nblocks

      public static XrWorldMeshBlockRequestML.Buffer nblocks(long struct)
      Unsafe version of blocks().
    • 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.
    • nflags

      public static void nflags(long struct, long value)
      Unsafe version of flags.
    • nfillHoleLength

      public static void nfillHoleLength(long struct, float value)
      Unsafe version of fillHoleLength.
    • ndisconnectedComponentArea

      public static void ndisconnectedComponentArea(long struct, float value)
      Unsafe version of disconnectedComponentArea.
    • nblockCount

      public static void nblockCount(long struct, int value)
      Sets the specified value to the blockCount field of the specified struct.
    • nblocks

      public static void nblocks(long struct, XrWorldMeshBlockRequestML.Buffer value)
      Unsafe version of blocks.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate