Class XrFrameEndInfoML

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFrameEndInfoML extends Struct<XrFrameEndInfoML> implements NativeResource

 struct XrFrameEndInfoML {
     XrStructureType type;
     void const * next;
     float focusDistance;
     XrFrameEndInfoFlagsML flags;
 }
  • 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.
    • FOCUSDISTANCE

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

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

    • XrFrameEndInfoML

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

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • focusDistance

      public float focusDistance()
      Returns:
      the value of the focusDistance field.
    • flags

      public long flags()
      Returns:
      the value of the flags field.
    • type

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

      public XrFrameEndInfoML type$Default()
      Sets the TYPE_FRAME_END_INFO_ML value to the type field.
    • next

      public XrFrameEndInfoML next(long value)
      Sets the specified value to the next field.
    • focusDistance

      public XrFrameEndInfoML focusDistance(float value)
      Sets the specified value to the focusDistance field.
    • flags

      public XrFrameEndInfoML flags(long value)
      Sets the specified value to the flags field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static float nfocusDistance(long struct)
      Unsafe version of focusDistance().
    • nflags

      public static long nflags(long struct)
      Unsafe version of flags().
    • 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.
    • nfocusDistance

      public static void nfocusDistance(long struct, float value)
      Unsafe version of focusDistance.
    • nflags

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