Class XrSystemFacialTrackingPropertiesHTC
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemFacialTrackingPropertiesHTC
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemFacialTrackingPropertiesHTC extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSystem property for facial tracking.Description
An application can inspect whether the system is capable of two of the facial tracking by extending the
XrSystemPropertieswithXrSystemFacialTrackingPropertiesHTCstructure when callingGetSystemProperties.Valid Usage (Implicit)
- The
XR_HTC_facial_trackingextension must be enabled prior to usingXrSystemFacialTrackingPropertiesHTC typemust beTYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTCnextmust beNULLor a valid pointer to the next structure in a structure chain
If a runtime returns
FALSEforsupportEyeFacialTracking, the runtime must returnERROR_FEATURE_UNSUPPORTEDfromCreateFacialTrackerHTCwithFACIAL_TRACKING_TYPE_EYE_DEFAULT_HTCset forXrFacialTrackingTypeHTCinXrFacialTrackerCreateInfoHTC. Similarly, if a runtime returnsFALSEforsupportLipFacialTrackingthe runtime must returnERROR_FEATURE_UNSUPPORTEDfromCreateFacialTrackerHTCwithFACIAL_TRACKING_TYPE_LIP_DEFAULT_HTCset forXrFacialTrackingTypeHTCinXrFacialTrackerCreateInfoHTC.Layout
struct XrSystemFacialTrackingPropertiesHTC { XrStructureTypetype(); void *next(); XrBool32supportEyeFacialTracking(); XrBool32supportLipFacialTracking(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemFacialTrackingPropertiesHTC.BufferAn array ofXrSystemFacialTrackingPropertiesHTCstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTEYEFACIALTRACKING
SUPPORTLIPFACIALTRACKING
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemFacialTrackingPropertiesHTC(java.nio.ByteBuffer container)Creates aXrSystemFacialTrackingPropertiesHTCinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemFacialTrackingPropertiesHTCcalloc()Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withmemCalloc.static XrSystemFacialTrackingPropertiesHTC.Buffercalloc(int capacity)Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withmemCalloc.static XrSystemFacialTrackingPropertiesHTC.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemFacialTrackingPropertiesHTCcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemFacialTrackingPropertiesHTCcreate()Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withBufferUtils.static XrSystemFacialTrackingPropertiesHTC.Buffercreate(int capacity)Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withBufferUtils.static XrSystemFacialTrackingPropertiesHTCcreate(long address)Returns a newXrSystemFacialTrackingPropertiesHTCinstance for the specified memory address.static XrSystemFacialTrackingPropertiesHTC.Buffercreate(long address, int capacity)Create aXrSystemFacialTrackingPropertiesHTC.Bufferinstance at the specified memory.static XrSystemFacialTrackingPropertiesHTCcreateSafe(long address)static XrSystemFacialTrackingPropertiesHTC.BuffercreateSafe(long address, int capacity)static XrSystemFacialTrackingPropertiesHTCmalloc()Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withmemAlloc.static XrSystemFacialTrackingPropertiesHTC.Buffermalloc(int capacity)Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withmemAlloc.static XrSystemFacialTrackingPropertiesHTC.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemFacialTrackingPropertiesHTCmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemFacialTrackingPropertiesHTCnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnsupportEyeFacialTracking(long struct)Unsafe version ofsupportEyeFacialTracking().static voidnsupportEyeFacialTracking(long struct, int value)Unsafe version ofsupportEyeFacialTracking.static intnsupportLipFacialTracking(long struct)Unsafe version ofsupportLipFacialTracking().static voidnsupportLipFacialTracking(long struct, int value)Unsafe version ofsupportLipFacialTracking.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemFacialTrackingPropertiesHTCset(int type, long next, boolean supportEyeFacialTracking, boolean supportLipFacialTracking)Initializes this struct with the specified values.XrSystemFacialTrackingPropertiesHTCset(XrSystemFacialTrackingPropertiesHTC src)Copies the specified struct data to this struct.intsizeof()booleansupportEyeFacialTracking()indicates if the current system is capable of generating eye expressions.XrSystemFacialTrackingPropertiesHTCsupportEyeFacialTracking(boolean value)Sets the specified value to thesupportEyeFacialTracking()field.booleansupportLipFacialTracking()indicates if the current system is capable of generating lip expressions.XrSystemFacialTrackingPropertiesHTCsupportLipFacialTracking(boolean value)Sets the specified value to thesupportLipFacialTracking()field.inttype()theXrStructureTypeof this structure.XrSystemFacialTrackingPropertiesHTCtype(int value)Sets the specified value to thetype()field.XrSystemFacialTrackingPropertiesHTCtype$Default()Sets theTYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTCvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSystemFacialTrackingPropertiesHTC
public XrSystemFacialTrackingPropertiesHTC(java.nio.ByteBuffer container)
Creates aXrSystemFacialTrackingPropertiesHTCinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
supportEyeFacialTracking
public boolean supportEyeFacialTracking()
indicates if the current system is capable of generating eye expressions.
-
supportLipFacialTracking
public boolean supportLipFacialTracking()
indicates if the current system is capable of generating lip expressions.
-
type
public XrSystemFacialTrackingPropertiesHTC type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemFacialTrackingPropertiesHTC type$Default()
Sets theTYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTCvalue to thetype()field.
-
next
public XrSystemFacialTrackingPropertiesHTC next(long value)
Sets the specified value to thenext()field.
-
supportEyeFacialTracking
public XrSystemFacialTrackingPropertiesHTC supportEyeFacialTracking(boolean value)
Sets the specified value to thesupportEyeFacialTracking()field.
-
supportLipFacialTracking
public XrSystemFacialTrackingPropertiesHTC supportLipFacialTracking(boolean value)
Sets the specified value to thesupportLipFacialTracking()field.
-
set
public XrSystemFacialTrackingPropertiesHTC set(int type, long next, boolean supportEyeFacialTracking, boolean supportLipFacialTracking)
Initializes this struct with the specified values.
-
set
public XrSystemFacialTrackingPropertiesHTC set(XrSystemFacialTrackingPropertiesHTC src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemFacialTrackingPropertiesHTC malloc()
Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemFacialTrackingPropertiesHTC calloc()
Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemFacialTrackingPropertiesHTC create()
Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated withBufferUtils.
-
create
public static XrSystemFacialTrackingPropertiesHTC create(long address)
Returns a newXrSystemFacialTrackingPropertiesHTCinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemFacialTrackingPropertiesHTC createSafe(long address)
-
malloc
public static XrSystemFacialTrackingPropertiesHTC.Buffer malloc(int capacity)
Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemFacialTrackingPropertiesHTC.Buffer calloc(int capacity)
Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemFacialTrackingPropertiesHTC.Buffer create(int capacity)
Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemFacialTrackingPropertiesHTC.Buffer create(long address, int capacity)
Create aXrSystemFacialTrackingPropertiesHTC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemFacialTrackingPropertiesHTC.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemFacialTrackingPropertiesHTC malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemFacialTrackingPropertiesHTC calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFacialTrackingPropertiesHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemFacialTrackingPropertiesHTC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemFacialTrackingPropertiesHTC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFacialTrackingPropertiesHTC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsupportEyeFacialTracking
public static int nsupportEyeFacialTracking(long struct)
Unsafe version ofsupportEyeFacialTracking().
-
nsupportLipFacialTracking
public static int nsupportLipFacialTracking(long struct)
Unsafe version ofsupportLipFacialTracking().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsupportEyeFacialTracking
public static void nsupportEyeFacialTracking(long struct, int value)Unsafe version ofsupportEyeFacialTracking.
-
nsupportLipFacialTracking
public static void nsupportLipFacialTracking(long struct, int value)Unsafe version ofsupportLipFacialTracking.
-
-