Package org.lwjgl.openxr
Class XrEyeGazeFB
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrEyeGazeFB {
XrBool32 isValid;
XrPosef gazePose;
float gazeConfidence;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.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 member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrEyeGazeFB(ByteBuffer container) Creates aXrEyeGazeFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrEyeGazeFBcalloc()Returns a newXrEyeGazeFBinstance allocated withmemCalloc.static XrEyeGazeFB.Buffercalloc(int capacity) Returns a newXrEyeGazeFB.Bufferinstance allocated withmemCalloc.static XrEyeGazeFB.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrEyeGazeFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEyeGazeFBcalloc(MemoryStack stack) Returns a newXrEyeGazeFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEyeGazeFBcreate()Returns a newXrEyeGazeFBinstance allocated withBufferUtils.static XrEyeGazeFB.Buffercreate(int capacity) Returns a newXrEyeGazeFB.Bufferinstance allocated withBufferUtils.static XrEyeGazeFBcreate(long address) Returns a newXrEyeGazeFBinstance for the specified memory address.static XrEyeGazeFB.Buffercreate(long address, int capacity) Create aXrEyeGazeFB.Bufferinstance at the specified memory.static @Nullable XrEyeGazeFBcreateSafe(long address) static @Nullable XrEyeGazeFB.BuffercreateSafe(long address, int capacity) floatgazeConfidence(float value) Sets the specified value to thegazeConfidencefield.gazePose()Passes thegazePosefield to the specifiedConsumer.Copies the specifiedXrPosefto thegazePosefield.booleanisValid()isValid(boolean value) Sets the specified value to theisValidfield.static XrEyeGazeFBmalloc()Returns a newXrEyeGazeFBinstance allocated withmemAlloc.static XrEyeGazeFB.Buffermalloc(int capacity) Returns a newXrEyeGazeFB.Bufferinstance allocated withmemAlloc.static XrEyeGazeFB.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrEyeGazeFB.Bufferinstance allocated on the specifiedMemoryStack.static XrEyeGazeFBmalloc(MemoryStack stack) Returns a newXrEyeGazeFBinstance allocated on the specifiedMemoryStack.static floatngazeConfidence(long struct) Unsafe version ofgazeConfidence().static voidngazeConfidence(long struct, float value) Unsafe version ofgazeConfidence.static XrPosefngazePose(long struct) Unsafe version ofgazePose().static voidUnsafe version ofgazePose.static intnisValid(long struct) Unsafe version ofisValid().static voidnisValid(long struct, int value) Unsafe version ofisValid.Initializes this struct with the specified values.set(XrEyeGazeFB src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
ISVALID
public static final int ISVALIDThe struct member offsets. -
GAZEPOSE
public static final int GAZEPOSEThe struct member offsets. -
GAZECONFIDENCE
public static final int GAZECONFIDENCEThe struct member offsets.
-
-
Constructor Details
-
XrEyeGazeFB
Creates aXrEyeGazeFBinstance 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<XrEyeGazeFB>
-
isValid
public boolean isValid()- Returns:
- the value of the
isValidfield.
-
gazePose
- Returns:
- a
XrPosefview of thegazePosefield.
-
gazeConfidence
public float gazeConfidence()- Returns:
- the value of the
gazeConfidencefield.
-
isValid
Sets the specified value to theisValidfield. -
gazePose
Copies the specifiedXrPosefto thegazePosefield. -
gazePose
Passes thegazePosefield to the specifiedConsumer. -
gazeConfidence
Sets the specified value to thegazeConfidencefield. -
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 newXrEyeGazeFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrEyeGazeFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrEyeGazeFBinstance allocated withBufferUtils. -
create
Returns a newXrEyeGazeFBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrEyeGazeFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrEyeGazeFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrEyeGazeFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrEyeGazeFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrEyeGazeFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrEyeGazeFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrEyeGazeFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrEyeGazeFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nisValid
public static int nisValid(long struct) Unsafe version ofisValid(). -
ngazePose
Unsafe version ofgazePose(). -
ngazeConfidence
public static float ngazeConfidence(long struct) Unsafe version ofgazeConfidence(). -
nisValid
public static void nisValid(long struct, int value) Unsafe version ofisValid. -
ngazePose
Unsafe version ofgazePose. -
ngazeConfidence
public static void ngazeConfidence(long struct, float value) Unsafe version ofgazeConfidence.
-