Package org.lwjgl.openxr
Class XrFaceExpressionWeights2FB
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrFaceExpressionWeights2FB
extends Struct<XrFaceExpressionWeights2FB>
implements NativeResource
struct XrFaceExpressionWeights2FB {
XrStructureType type;
void * next;
uint32_t weightCount;
float * weights;
uint32_t confidenceCount;
float * confidences;
XrBool32 isValid;
XrBool32 isEyeFollowingBlendshapesValid;
XrFaceTrackingDataSource2FB dataSource;
XrTime time;
}-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrFaceExpressionWeights2FB(ByteBuffer container) Creates aXrFaceExpressionWeights2FBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrFaceExpressionWeights2FBcalloc()Returns a newXrFaceExpressionWeights2FBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFaceExpressionWeights2FBcalloc(MemoryStack stack) Returns a newXrFaceExpressionWeights2FBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intconfidences(FloatBuffer value) Sets the address of the specifiedFloatBufferto theconfidencesfield.static XrFaceExpressionWeights2FBcreate()Returns a newXrFaceExpressionWeights2FBinstance allocated withBufferUtils.create(int capacity) Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withBufferUtils.static XrFaceExpressionWeights2FBcreate(long address) Returns a newXrFaceExpressionWeights2FBinstance for the specified memory address.create(long address, int capacity) Create aXrFaceExpressionWeights2FB.Bufferinstance at the specified memory.static @Nullable XrFaceExpressionWeights2FBcreateSafe(long address) static @Nullable XrFaceExpressionWeights2FB.BuffercreateSafe(long address, int capacity) intdataSource(int value) Sets the specified value to thedataSourcefield.booleanisEyeFollowingBlendshapesValid(boolean value) Sets the specified value to theisEyeFollowingBlendshapesValidfield.booleanisValid()isValid(boolean value) Sets the specified value to theisValidfield.static XrFaceExpressionWeights2FBmalloc()Returns a newXrFaceExpressionWeights2FBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated on the specifiedMemoryStack.static XrFaceExpressionWeights2FBmalloc(MemoryStack stack) Returns a newXrFaceExpressionWeights2FBinstance allocated on the specifiedMemoryStack.static intnconfidenceCount(long struct) Unsafe version ofconfidenceCount().static voidnconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct.static FloatBuffernconfidences(long struct) Unsafe version ofconfidences.static voidnconfidences(long struct, FloatBuffer value) Unsafe version ofconfidences.static intndataSource(long struct) Unsafe version ofdataSource().static voidndataSource(long struct, int value) Unsafe version ofdataSource.longnext()next(long value) Sets the specified value to thenextfield.static intnisEyeFollowingBlendshapesValid(long struct) Unsafe version ofisEyeFollowingBlendshapesValid().static voidnisEyeFollowingBlendshapesValid(long struct, int value) Unsafe version ofisEyeFollowingBlendshapesValid.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 longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnweightCount(long struct) Unsafe version ofweightCount().static voidnweightCount(long struct, int value) Sets the specified value to theweightCountfield of the specifiedstruct.static FloatBuffernweights(long struct) Unsafe version ofweights.static voidnweights(long struct, FloatBuffer value) Unsafe version ofweights.set(int type, long next, FloatBuffer weights, FloatBuffer confidences, boolean isValid, boolean isEyeFollowingBlendshapesValid, int dataSource, long time) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longtime()time(long value) Sets the specified value to thetimefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_FACE_EXPRESSION_WEIGHTS2_FBvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intweights()weights(FloatBuffer value) Sets the address of the specifiedFloatBufferto theweightsfield.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. -
WEIGHTCOUNT
public static final int WEIGHTCOUNTThe struct member offsets. -
WEIGHTS
public static final int WEIGHTSThe struct member offsets. -
CONFIDENCECOUNT
public static final int CONFIDENCECOUNTThe struct member offsets. -
CONFIDENCES
public static final int CONFIDENCESThe struct member offsets. -
ISVALID
public static final int ISVALIDThe struct member offsets. -
ISEYEFOLLOWINGBLENDSHAPESVALID
public static final int ISEYEFOLLOWINGBLENDSHAPESVALIDThe struct member offsets. -
DATASOURCE
public static final int DATASOURCEThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets.
-
-
Constructor Details
-
XrFaceExpressionWeights2FB
Creates aXrFaceExpressionWeights2FBinstance 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<XrFaceExpressionWeights2FB>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
weightCount
public int weightCount()- Returns:
- the value of the
weightCountfield.
-
weights
- Returns:
- a
FloatBufferview of the data pointed to by theweightsfield.
-
confidenceCount
public int confidenceCount()- Returns:
- the value of the
confidenceCountfield.
-
confidences
- Returns:
- a
FloatBufferview of the data pointed to by theconfidencesfield.
-
isValid
public boolean isValid()- Returns:
- the value of the
isValidfield.
-
isEyeFollowingBlendshapesValid
public boolean isEyeFollowingBlendshapesValid()- Returns:
- the value of the
isEyeFollowingBlendshapesValidfield.
-
dataSource
public int dataSource()- Returns:
- the value of the
dataSourcefield.
-
time
public long time()- Returns:
- the value of the
timefield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_FACE_EXPRESSION_WEIGHTS2_FBvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
weights
Sets the address of the specifiedFloatBufferto theweightsfield. -
confidences
Sets the address of the specifiedFloatBufferto theconfidencesfield. -
isValid
Sets the specified value to theisValidfield. -
isEyeFollowingBlendshapesValid
Sets the specified value to theisEyeFollowingBlendshapesValidfield. -
dataSource
Sets the specified value to thedataSourcefield. -
time
Sets the specified value to thetimefield. -
set
public XrFaceExpressionWeights2FB set(int type, long next, FloatBuffer weights, FloatBuffer confidences, boolean isValid, boolean isEyeFollowingBlendshapesValid, int dataSource, long time) 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 newXrFaceExpressionWeights2FBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrFaceExpressionWeights2FBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrFaceExpressionWeights2FBinstance allocated withBufferUtils. -
create
Returns a newXrFaceExpressionWeights2FBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrFaceExpressionWeights2FB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFaceExpressionWeights2FBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrFaceExpressionWeights2FBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrFaceExpressionWeights2FB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrFaceExpressionWeights2FB.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(). -
nweightCount
public static int nweightCount(long struct) Unsafe version ofweightCount(). -
nweights
Unsafe version ofweights. -
nconfidenceCount
public static int nconfidenceCount(long struct) Unsafe version ofconfidenceCount(). -
nconfidences
Unsafe version ofconfidences. -
nisValid
public static int nisValid(long struct) Unsafe version ofisValid(). -
nisEyeFollowingBlendshapesValid
public static int nisEyeFollowingBlendshapesValid(long struct) Unsafe version ofisEyeFollowingBlendshapesValid(). -
ndataSource
public static int ndataSource(long struct) Unsafe version ofdataSource(). -
ntime
public static long ntime(long struct) Unsafe version oftime(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nweightCount
public static void nweightCount(long struct, int value) Sets the specified value to theweightCountfield of the specifiedstruct. -
nweights
Unsafe version ofweights. -
nconfidenceCount
public static void nconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct. -
nconfidences
Unsafe version ofconfidences. -
nisValid
public static void nisValid(long struct, int value) Unsafe version ofisValid. -
nisEyeFollowingBlendshapesValid
public static void nisEyeFollowingBlendshapesValid(long struct, int value) Unsafe version ofisEyeFollowingBlendshapesValid. -
ndataSource
public static void ndataSource(long struct, int value) Unsafe version ofdataSource. -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-