Class XrMarkerSpaceCreateInfoML

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

public class XrMarkerSpaceCreateInfoML extends org.lwjgl.system.Struct<XrMarkerSpaceCreateInfoML> implements org.lwjgl.system.NativeResource
Specify marker space creation parameters.
Valid Usage (Implicit)
See Also

XrPosef, CreateMarkerSpaceML

Layout


 struct XrMarkerSpaceCreateInfoML {
     XrStructureType type();
     void const * next();
     XrMarkerDetectorML markerDetector();
     XrMarkerML marker();
     XrPosef poseInMarkerSpace();
 }
  • 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.
    • MARKERDETECTOR

      public static final int MARKERDETECTOR
      The struct member offsets.
    • MARKER

      public static final int MARKER
      The struct member offsets.
    • POSEINMARKERSPACE

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

    • XrMarkerSpaceCreateInfoML

      public XrMarkerSpaceCreateInfoML(ByteBuffer container)
      Creates a XrMarkerSpaceCreateInfoML 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<XrMarkerSpaceCreateInfoML>
    • 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. No such structures are defined in core OpenXR or this extension.
    • markerDetector

      public long markerDetector()
      the detector object to retrieve marker information from.
    • marker

      public long marker()
      the marker atom to be examined.
    • poseInMarkerSpace

      public XrPosef poseInMarkerSpace()
      the offset from the marker’s origin of the new XrSpace. The origin of each marker is located at its center.
    • type

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

      public XrMarkerSpaceCreateInfoML type$Default()
      Sets the TYPE_MARKER_SPACE_CREATE_INFO_ML value to the type() field.
    • next

      public XrMarkerSpaceCreateInfoML next(long value)
      Sets the specified value to the next() field.
    • markerDetector

      public XrMarkerSpaceCreateInfoML markerDetector(XrMarkerDetectorML value)
      Sets the specified value to the markerDetector() field.
    • marker

      public XrMarkerSpaceCreateInfoML marker(long value)
      Sets the specified value to the marker() field.
    • poseInMarkerSpace

      public XrMarkerSpaceCreateInfoML poseInMarkerSpace(XrPosef value)
      Copies the specified XrPosef to the poseInMarkerSpace() field.
    • poseInMarkerSpace

      public XrMarkerSpaceCreateInfoML poseInMarkerSpace(Consumer<XrPosef> consumer)
      Passes the poseInMarkerSpace() field to the specified Consumer.
    • set

      public XrMarkerSpaceCreateInfoML set(int type, long next, XrMarkerDetectorML markerDetector, long marker, XrPosef poseInMarkerSpace)
      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 XrMarkerSpaceCreateInfoML malloc()
      Returns a new XrMarkerSpaceCreateInfoML instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nmarkerDetector(long struct)
      Unsafe version of markerDetector().
    • nmarker

      public static long nmarker(long struct)
      Unsafe version of marker().
    • nposeInMarkerSpace

      public static XrPosef nposeInMarkerSpace(long struct)
      Unsafe version of poseInMarkerSpace().
    • 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.
    • nmarkerDetector

      public static void nmarkerDetector(long struct, XrMarkerDetectorML value)
      Unsafe version of markerDetector.
    • nmarker

      public static void nmarker(long struct, long value)
      Unsafe version of marker.
    • nposeInMarkerSpace

      public static void nposeInMarkerSpace(long struct, XrPosef value)
      Unsafe version of poseInMarkerSpace.
    • validate

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