Package org.lwjgl.openxr
Class XrFacialTrackerCreateInfoHTC
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrFacialTrackerCreateInfoHTC
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrFacialTrackerCreateInfoHTC extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation to create a facial tracker handle.Description
The
XrFacialTrackerCreateInfoHTCstructure describes the information to create anXrFacialTrackerHTChandle.Valid Usage (Implicit)
- The
XR_HTC_facial_trackingextension must be enabled prior to usingXrFacialTrackerCreateInfoHTC typemust beTYPE_FACIAL_TRACKER_CREATE_INFO_HTCnextmust beNULLor a valid pointer to the next structure in a structure chainfacialTrackingTypemust be a validXrFacialTrackingTypeHTCvalue
See Also
Layout
struct XrFacialTrackerCreateInfoHTC { XrStructureTypetype(); void const *next(); XrFacialTrackingTypeHTCfacialTrackingType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrFacialTrackerCreateInfoHTC.BufferAn array ofXrFacialTrackerCreateInfoHTCstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFACIALTRACKINGTYPE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrFacialTrackerCreateInfoHTC(java.nio.ByteBuffer container)Creates aXrFacialTrackerCreateInfoHTCinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrFacialTrackerCreateInfoHTCcalloc()Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withmemCalloc.static XrFacialTrackerCreateInfoHTC.Buffercalloc(int capacity)Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withmemCalloc.static XrFacialTrackerCreateInfoHTC.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFacialTrackerCreateInfoHTCcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrFacialTrackerCreateInfoHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFacialTrackerCreateInfoHTCcreate()Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withBufferUtils.static XrFacialTrackerCreateInfoHTC.Buffercreate(int capacity)Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withBufferUtils.static XrFacialTrackerCreateInfoHTCcreate(long address)Returns a newXrFacialTrackerCreateInfoHTCinstance for the specified memory address.static XrFacialTrackerCreateInfoHTC.Buffercreate(long address, int capacity)Create aXrFacialTrackerCreateInfoHTC.Bufferinstance at the specified memory.static XrFacialTrackerCreateInfoHTCcreateSafe(long address)static XrFacialTrackerCreateInfoHTC.BuffercreateSafe(long address, int capacity)intfacialTrackingType()anXrFacialTrackingTypeHTCwhich describes which type of facial tracking should be used for this handle.XrFacialTrackerCreateInfoHTCfacialTrackingType(int value)Sets the specified value to thefacialTrackingType()field.static XrFacialTrackerCreateInfoHTCmalloc()Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withmemAlloc.static XrFacialTrackerCreateInfoHTC.Buffermalloc(int capacity)Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withmemAlloc.static XrFacialTrackerCreateInfoHTC.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated on the specifiedMemoryStack.static XrFacialTrackerCreateInfoHTCmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrFacialTrackerCreateInfoHTCinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrFacialTrackerCreateInfoHTCnext(long value)Sets the specified value to thenext()field.static intnfacialTrackingType(long struct)Unsafe version offacialTrackingType().static voidnfacialTrackingType(long struct, int value)Unsafe version offacialTrackingType.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrFacialTrackerCreateInfoHTCset(int type, long next, int facialTrackingType)Initializes this struct with the specified values.XrFacialTrackerCreateInfoHTCset(XrFacialTrackerCreateInfoHTC src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrFacialTrackerCreateInfoHTCtype(int value)Sets the specified value to thetype()field.XrFacialTrackerCreateInfoHTCtype$Default()Sets theTYPE_FACIAL_TRACKER_CREATE_INFO_HTCvalue to thetype()field.
-
-
-
Constructor Detail
-
XrFacialTrackerCreateInfoHTC
public XrFacialTrackerCreateInfoHTC(java.nio.ByteBuffer container)
Creates aXrFacialTrackerCreateInfoHTCinstance 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.
-
facialTrackingType
public int facialTrackingType()
anXrFacialTrackingTypeHTCwhich describes which type of facial tracking should be used for this handle.
-
type
public XrFacialTrackerCreateInfoHTC type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrFacialTrackerCreateInfoHTC type$Default()
Sets theTYPE_FACIAL_TRACKER_CREATE_INFO_HTCvalue to thetype()field.
-
next
public XrFacialTrackerCreateInfoHTC next(long value)
Sets the specified value to thenext()field.
-
facialTrackingType
public XrFacialTrackerCreateInfoHTC facialTrackingType(int value)
Sets the specified value to thefacialTrackingType()field.
-
set
public XrFacialTrackerCreateInfoHTC set(int type, long next, int facialTrackingType)
Initializes this struct with the specified values.
-
set
public XrFacialTrackerCreateInfoHTC set(XrFacialTrackerCreateInfoHTC src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrFacialTrackerCreateInfoHTC malloc()
Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrFacialTrackerCreateInfoHTC calloc()
Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrFacialTrackerCreateInfoHTC create()
Returns a newXrFacialTrackerCreateInfoHTCinstance allocated withBufferUtils.
-
create
public static XrFacialTrackerCreateInfoHTC create(long address)
Returns a newXrFacialTrackerCreateInfoHTCinstance for the specified memory address.
-
createSafe
@Nullable public static XrFacialTrackerCreateInfoHTC createSafe(long address)
-
malloc
public static XrFacialTrackerCreateInfoHTC.Buffer malloc(int capacity)
Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrFacialTrackerCreateInfoHTC.Buffer calloc(int capacity)
Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrFacialTrackerCreateInfoHTC.Buffer create(int capacity)
Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrFacialTrackerCreateInfoHTC.Buffer create(long address, int capacity)
Create aXrFacialTrackerCreateInfoHTC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrFacialTrackerCreateInfoHTC.Buffer createSafe(long address, int capacity)
-
malloc
public static XrFacialTrackerCreateInfoHTC malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrFacialTrackerCreateInfoHTCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrFacialTrackerCreateInfoHTC calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrFacialTrackerCreateInfoHTCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrFacialTrackerCreateInfoHTC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrFacialTrackerCreateInfoHTC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrFacialTrackerCreateInfoHTC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrFacialTrackerCreateInfoHTC.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().
-
nfacialTrackingType
public static int nfacialTrackingType(long struct)
Unsafe version offacialTrackingType().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nfacialTrackingType
public static void nfacialTrackingType(long struct, int value)Unsafe version offacialTrackingType.
-
-