Package org.lwjgl.openxr
Class XrFaceStateANDROID
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrFaceStateANDROID {
XrStructureType type;
void * next;
uint32_t parametersCapacityInput;
uint32_t parametersCountOutput;
float * parameters;
XrFaceTrackingStateANDROID faceTrackingState;
XrTime sampleTime;
XrBool32 isValid;
uint32_t regionConfidencesCapacityInput;
uint32_t regionConfidencesCountOutput;
float * regionConfidences;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrFaceStateANDROID(ByteBuffer container) Creates aXrFaceStateANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrFaceStateANDROIDcalloc()Returns a newXrFaceStateANDROIDinstance allocated withmemCalloc.static XrFaceStateANDROID.Buffercalloc(int capacity) Returns a newXrFaceStateANDROID.Bufferinstance allocated withmemCalloc.static XrFaceStateANDROID.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrFaceStateANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFaceStateANDROIDcalloc(MemoryStack stack) Returns a newXrFaceStateANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFaceStateANDROIDcreate()Returns a newXrFaceStateANDROIDinstance allocated withBufferUtils.static XrFaceStateANDROID.Buffercreate(int capacity) Returns a newXrFaceStateANDROID.Bufferinstance allocated withBufferUtils.static XrFaceStateANDROIDcreate(long address) Returns a newXrFaceStateANDROIDinstance for the specified memory address.static XrFaceStateANDROID.Buffercreate(long address, int capacity) Create aXrFaceStateANDROID.Bufferinstance at the specified memory.static @Nullable XrFaceStateANDROIDcreateSafe(long address) static @Nullable XrFaceStateANDROID.BuffercreateSafe(long address, int capacity) intfaceTrackingState(int value) Sets the specified value to thefaceTrackingStatefield.booleanisValid()isValid(boolean value) Sets the specified value to theisValidfield.static XrFaceStateANDROIDmalloc()Returns a newXrFaceStateANDROIDinstance allocated withmemAlloc.static XrFaceStateANDROID.Buffermalloc(int capacity) Returns a newXrFaceStateANDROID.Bufferinstance allocated withmemAlloc.static XrFaceStateANDROID.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrFaceStateANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrFaceStateANDROIDmalloc(MemoryStack stack) Returns a newXrFaceStateANDROIDinstance allocated on the specifiedMemoryStack.longnext()next(long value) Sets the specified value to thenextfield.static intnfaceTrackingState(long struct) Unsafe version offaceTrackingState().static voidnfaceTrackingState(long struct, int value) Unsafe version offaceTrackingState.static intnisValid(long struct) Unsafe version ofisValid().static voidnisValid(long struct, int value) Unsafe version ofisValid.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static @Nullable FloatBuffernparameters(long struct) Unsafe version ofparameters.static voidnparameters(long struct, @Nullable FloatBuffer value) Unsafe version ofparameters.static intnparametersCapacityInput(long struct) Unsafe version ofparametersCapacityInput().static voidnparametersCapacityInput(long struct, int value) Sets the specified value to theparametersCapacityInputfield of the specifiedstruct.static intnparametersCountOutput(long struct) Unsafe version ofparametersCountOutput().static voidnparametersCountOutput(long struct, int value) Unsafe version ofparametersCountOutput.static @Nullable FloatBuffernregionConfidences(long struct) Unsafe version ofregionConfidences.static voidnregionConfidences(long struct, @Nullable FloatBuffer value) Unsafe version ofregionConfidences.static intnregionConfidencesCapacityInput(long struct) Unsafe version ofregionConfidencesCapacityInput().static voidnregionConfidencesCapacityInput(long struct, int value) Sets the specified value to theregionConfidencesCapacityInputfield of the specifiedstruct.static intnregionConfidencesCountOutput(long struct) Unsafe version ofregionConfidencesCountOutput().static voidnregionConfidencesCountOutput(long struct, int value) Unsafe version ofregionConfidencesCountOutput.static longnsampleTime(long struct) Unsafe version ofsampleTime().static voidnsampleTime(long struct, long value) Unsafe version ofsampleTime.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.@Nullable FloatBufferparameters(@Nullable FloatBuffer value) Sets the address of the specifiedFloatBufferto theparametersfield.intparametersCapacityInput(int value) Sets the specified value to theparametersCapacityInputfield.intparametersCountOutput(int value) Sets the specified value to theparametersCountOutputfield.@Nullable FloatBufferregionConfidences(@Nullable FloatBuffer value) Sets the address of the specifiedFloatBufferto theregionConfidencesfield.intregionConfidencesCapacityInput(int value) Sets the specified value to theregionConfidencesCapacityInputfield.intregionConfidencesCountOutput(int value) Sets the specified value to theregionConfidencesCountOutputfield.longsampleTime(long value) Sets the specified value to thesampleTimefield.set(int type, long next, int parametersCapacityInput, int parametersCountOutput, @Nullable FloatBuffer parameters, int faceTrackingState, long sampleTime, boolean isValid, int regionConfidencesCapacityInput, int regionConfidencesCountOutput, @Nullable FloatBuffer regionConfidences) Initializes this struct with the specified values.set(XrFaceStateANDROID src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_FACE_STATE_ANDROIDvalue to thetypefield.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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
PARAMETERSCAPACITYINPUT
public static final int PARAMETERSCAPACITYINPUTThe struct member offsets. -
PARAMETERSCOUNTOUTPUT
public static final int PARAMETERSCOUNTOUTPUTThe struct member offsets. -
PARAMETERS
public static final int PARAMETERSThe struct member offsets. -
FACETRACKINGSTATE
public static final int FACETRACKINGSTATEThe struct member offsets. -
SAMPLETIME
public static final int SAMPLETIMEThe struct member offsets. -
ISVALID
public static final int ISVALIDThe struct member offsets. -
REGIONCONFIDENCESCAPACITYINPUT
public static final int REGIONCONFIDENCESCAPACITYINPUTThe struct member offsets. -
REGIONCONFIDENCESCOUNTOUTPUT
public static final int REGIONCONFIDENCESCOUNTOUTPUTThe struct member offsets. -
REGIONCONFIDENCES
public static final int REGIONCONFIDENCESThe struct member offsets.
-
-
Constructor Details
-
XrFaceStateANDROID
Creates aXrFaceStateANDROIDinstance 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<XrFaceStateANDROID>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
parametersCapacityInput
public int parametersCapacityInput()- Returns:
- the value of the
parametersCapacityInputfield.
-
parametersCountOutput
public int parametersCountOutput()- Returns:
- the value of the
parametersCountOutputfield.
-
parameters
- Returns:
- a
FloatBufferview of the data pointed to by theparametersfield.
-
faceTrackingState
public int faceTrackingState()- Returns:
- the value of the
faceTrackingStatefield.
-
sampleTime
public long sampleTime()- Returns:
- the value of the
sampleTimefield.
-
isValid
public boolean isValid()- Returns:
- the value of the
isValidfield.
-
regionConfidencesCapacityInput
public int regionConfidencesCapacityInput()- Returns:
- the value of the
regionConfidencesCapacityInputfield.
-
regionConfidencesCountOutput
public int regionConfidencesCountOutput()- Returns:
- the value of the
regionConfidencesCountOutputfield.
-
regionConfidences
- Returns:
- a
FloatBufferview of the data pointed to by theregionConfidencesfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_FACE_STATE_ANDROIDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
parametersCapacityInput
Sets the specified value to theparametersCapacityInputfield. -
parametersCountOutput
Sets the specified value to theparametersCountOutputfield. -
parameters
Sets the address of the specifiedFloatBufferto theparametersfield. -
faceTrackingState
Sets the specified value to thefaceTrackingStatefield. -
sampleTime
Sets the specified value to thesampleTimefield. -
isValid
Sets the specified value to theisValidfield. -
regionConfidencesCapacityInput
Sets the specified value to theregionConfidencesCapacityInputfield. -
regionConfidencesCountOutput
Sets the specified value to theregionConfidencesCountOutputfield. -
regionConfidences
Sets the address of the specifiedFloatBufferto theregionConfidencesfield. -
set
public XrFaceStateANDROID set(int type, long next, int parametersCapacityInput, int parametersCountOutput, @Nullable FloatBuffer parameters, int faceTrackingState, long sampleTime, boolean isValid, int regionConfidencesCapacityInput, int regionConfidencesCountOutput, @Nullable FloatBuffer regionConfidences) 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 newXrFaceStateANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrFaceStateANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrFaceStateANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrFaceStateANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFaceStateANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrFaceStateANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrFaceStateANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrFaceStateANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFaceStateANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrFaceStateANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrFaceStateANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrFaceStateANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nparametersCapacityInput
public static int nparametersCapacityInput(long struct) Unsafe version ofparametersCapacityInput(). -
nparametersCountOutput
public static int nparametersCountOutput(long struct) Unsafe version ofparametersCountOutput(). -
nparameters
Unsafe version ofparameters. -
nfaceTrackingState
public static int nfaceTrackingState(long struct) Unsafe version offaceTrackingState(). -
nsampleTime
public static long nsampleTime(long struct) Unsafe version ofsampleTime(). -
nisValid
public static int nisValid(long struct) Unsafe version ofisValid(). -
nregionConfidencesCapacityInput
public static int nregionConfidencesCapacityInput(long struct) Unsafe version ofregionConfidencesCapacityInput(). -
nregionConfidencesCountOutput
public static int nregionConfidencesCountOutput(long struct) Unsafe version ofregionConfidencesCountOutput(). -
nregionConfidences
Unsafe version ofregionConfidences. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nparametersCapacityInput
public static void nparametersCapacityInput(long struct, int value) Sets the specified value to theparametersCapacityInputfield of the specifiedstruct. -
nparametersCountOutput
public static void nparametersCountOutput(long struct, int value) Unsafe version ofparametersCountOutput. -
nparameters
Unsafe version ofparameters. -
nfaceTrackingState
public static void nfaceTrackingState(long struct, int value) Unsafe version offaceTrackingState. -
nsampleTime
public static void nsampleTime(long struct, long value) Unsafe version ofsampleTime. -
nisValid
public static void nisValid(long struct, int value) Unsafe version ofisValid. -
nregionConfidencesCapacityInput
public static void nregionConfidencesCapacityInput(long struct, int value) Sets the specified value to theregionConfidencesCapacityInputfield of the specifiedstruct. -
nregionConfidencesCountOutput
public static void nregionConfidencesCountOutput(long struct, int value) Unsafe version ofregionConfidencesCountOutput. -
nregionConfidences
Unsafe version ofregionConfidences.
-