Class XrEyeANDROID
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct XrEyeANDROID {
XrEyeStateANDROID eyeState;
XrPosef eyePose;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrEyeANDROID(ByteBuffer container) Creates aXrEyeANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrEyeANDROIDcalloc()Returns a newXrEyeANDROIDinstance allocated withmemCalloc.static XrEyeANDROID.Buffercalloc(int capacity) Returns a newXrEyeANDROID.Bufferinstance allocated withmemCalloc.static XrEyeANDROID.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrEyeANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEyeANDROIDcalloc(MemoryStack stack) Returns a newXrEyeANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEyeANDROIDcreate()Returns a newXrEyeANDROIDinstance allocated withBufferUtils.static XrEyeANDROID.Buffercreate(int capacity) Returns a newXrEyeANDROID.Bufferinstance allocated withBufferUtils.static XrEyeANDROIDcreate(long address) Returns a newXrEyeANDROIDinstance for the specified memory address.static XrEyeANDROID.Buffercreate(long address, int capacity) Create aXrEyeANDROID.Bufferinstance at the specified memory.static @Nullable XrEyeANDROIDcreateSafe(long address) static @Nullable XrEyeANDROID.BuffercreateSafe(long address, int capacity) eyePose()Passes theeyePosefield to the specifiedConsumer.Copies the specifiedXrPosefto theeyePosefield.inteyeState()eyeState(int value) Sets the specified value to theeyeStatefield.static XrEyeANDROIDmalloc()Returns a newXrEyeANDROIDinstance allocated withmemAlloc.static XrEyeANDROID.Buffermalloc(int capacity) Returns a newXrEyeANDROID.Bufferinstance allocated withmemAlloc.static XrEyeANDROID.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrEyeANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrEyeANDROIDmalloc(MemoryStack stack) Returns a newXrEyeANDROIDinstance allocated on the specifiedMemoryStack.static XrPosefneyePose(long struct) Unsafe version ofeyePose().static voidUnsafe version ofeyePose.static intneyeState(long struct) Unsafe version ofeyeState().static voidneyeState(long struct, int value) Unsafe version ofeyeState.Initializes this struct with the specified values.set(XrEyeANDROID src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
EYESTATE
public static final int EYESTATEThe struct member offsets. -
EYEPOSE
public static final int EYEPOSEThe struct member offsets.
-
-
Constructor Details
-
XrEyeANDROID
Creates aXrEyeANDROIDinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrEyeANDROID>
-
eyeState
- Returns:
- the value of the
eyeStatefield.
-
eyePose
-
eyeState
Sets the specified value to theeyeStatefield. -
eyePose
Copies the specifiedXrPosefto theeyePosefield. -
eyePose
Passes theeyePosefield to the specifiedConsumer. -
set
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
Returns a newXrEyeANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrEyeANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrEyeANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrEyeANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrEyeANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrEyeANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrEyeANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrEyeANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrEyeANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrEyeANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrEyeANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrEyeANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
neyeState
public static int neyeState(long struct) Unsafe version ofeyeState(). -
neyePose
-
neyeState
public static void neyeState(long struct, int value) Unsafe version ofeyeState. -
neyePose
-