Class XrEyeANDROID

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrEyeANDROID extends Struct<XrEyeANDROID> implements NativeResource
struct XrEyeANDROID {
    XrEyeStateANDROID eyeState;
    XrPosef eyePose;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • EYESTATE

      public static final int EYESTATE
      The struct member offsets.
    • EYEPOSE

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

    • XrEyeANDROID

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

      @NativeType("XrEyeStateANDROID") public int eyeState()
      Returns:
      the value of the eyeState field.
    • eyePose

      public XrPosef eyePose()
      Returns:
      a XrPosef view of the eyePose field.
    • eyeState

      public XrEyeANDROID eyeState(@NativeType("XrEyeStateANDROID") int value)
      Sets the specified value to the eyeState field.
    • eyePose

      public XrEyeANDROID eyePose(XrPosef value)
      Copies the specified XrPosef to the eyePose field.
    • eyePose

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

      public XrEyeANDROID set(int eyeState, XrPosef eyePose)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int neyeState(long struct)
      Unsafe version of eyeState().
    • neyePose

      public static XrPosef neyePose(long struct)
      Unsafe version of eyePose().
    • neyeState

      public static void neyeState(long struct, int value)
      Unsafe version of eyeState.
    • neyePose

      public static void neyePose(long struct, XrPosef value)
      Unsafe version of eyePose.