Class XrEyeGazesFB

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

public class XrEyeGazesFB extends org.lwjgl.system.Struct<XrEyeGazesFB> implements org.lwjgl.system.NativeResource
Returns the eye gaze directions.
Valid Usage (Implicit)
See Also

XrEyeGazeFB, GetEyeGazesFB

Layout


 struct XrEyeGazesFB {
     XrStructureType type();
     void * next();
     XrEyeGazeFB gaze()[XR_EYE_POSITION_COUNT_FB];
     XrTime time();
 }
  • 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.
    • GAZE

      public static final int GAZE
      The struct member offsets.
    • TIME

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

    • XrEyeGazesFB

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

      public XrEyeGazeFB.Buffer gaze()
      an array of XrEyeGazeFB receiving the returned eye gaze directions.
    • gaze

      public XrEyeGazeFB gaze(int index)
      an array of XrEyeGazeFB receiving the returned eye gaze directions.
    • time

      public long time()
      an XrTime time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was requested if the interpolation at the time was successful.
    • type

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

      public XrEyeGazesFB type$Default()
      Sets the TYPE_EYE_GAZES_FB value to the type() field.
    • next

      public XrEyeGazesFB next(long value)
      Sets the specified value to the next() field.
    • gaze

      public XrEyeGazesFB gaze(XrEyeGazeFB.Buffer value)
      Copies the specified XrEyeGazeFB.Buffer to the gaze() field.
    • gaze

      public XrEyeGazesFB gaze(int index, XrEyeGazeFB value)
      Copies the specified XrEyeGazeFB at the specified index of the gaze() field.
    • gaze

      public XrEyeGazesFB gaze(Consumer<XrEyeGazeFB.Buffer> consumer)
      Passes the gaze() field to the specified Consumer.
    • gaze

      public XrEyeGazesFB gaze(int index, Consumer<XrEyeGazeFB> consumer)
      Passes the element at index of the gaze() field to the specified Consumer.
    • time

      public XrEyeGazesFB time(long value)
      Sets the specified value to the time() field.
    • set

      public XrEyeGazesFB set(int type, long next, XrEyeGazeFB.Buffer gaze, long time)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrEyeGazeFB.Buffer ngaze(long struct)
      Unsafe version of gaze().
    • ngaze

      public static XrEyeGazeFB ngaze(long struct, int index)
      Unsafe version of gaze.
    • ntime

      public static long ntime(long struct)
      Unsafe version of time().
    • 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.
    • ngaze

      public static void ngaze(long struct, XrEyeGazeFB.Buffer value)
      Unsafe version of gaze.
    • ngaze

      public static void ngaze(long struct, int index, XrEyeGazeFB value)
      Unsafe version of gaze.
    • ntime

      public static void ntime(long struct, long value)
      Unsafe version of time.