Package org.lwjgl.openxr
Class XrSystemHandTrackingPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemHandTrackingPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemHandTrackingPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSystem property for hand tracking.Valid Usage (Implicit)
- The
XR_EXT_hand_trackingextension must be enabled prior to usingXrSystemHandTrackingPropertiesEXT typemust beTYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXTnextmust beNULLor a valid pointer to the next structure in a structure chain
If a runtime returns
FALSEforsupportsHandTracking, the runtime must returnERROR_FEATURE_UNSUPPORTEDfromCreateHandTrackerEXT.Layout
struct XrSystemHandTrackingPropertiesEXT { XrStructureTypetype(); void *next(); XrBool32supportsHandTracking(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemHandTrackingPropertiesEXT.BufferAn array ofXrSystemHandTrackingPropertiesEXTstructs.
-
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 intSUPPORTSHANDTRACKING
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemHandTrackingPropertiesEXT(java.nio.ByteBuffer container)Creates aXrSystemHandTrackingPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemHandTrackingPropertiesEXTcalloc()Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withmemCalloc.static XrSystemHandTrackingPropertiesEXT.Buffercalloc(int capacity)Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withmemCalloc.static XrSystemHandTrackingPropertiesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemHandTrackingPropertiesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemHandTrackingPropertiesEXTcreate()Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withBufferUtils.static XrSystemHandTrackingPropertiesEXT.Buffercreate(int capacity)Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withBufferUtils.static XrSystemHandTrackingPropertiesEXTcreate(long address)Returns a newXrSystemHandTrackingPropertiesEXTinstance for the specified memory address.static XrSystemHandTrackingPropertiesEXT.Buffercreate(long address, int capacity)Create aXrSystemHandTrackingPropertiesEXT.Bufferinstance at the specified memory.static XrSystemHandTrackingPropertiesEXTcreateSafe(long address)static XrSystemHandTrackingPropertiesEXT.BuffercreateSafe(long address, int capacity)static XrSystemHandTrackingPropertiesEXTmalloc()Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withmemAlloc.static XrSystemHandTrackingPropertiesEXT.Buffermalloc(int capacity)Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withmemAlloc.static XrSystemHandTrackingPropertiesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemHandTrackingPropertiesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemHandTrackingPropertiesEXTnext(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 intnsupportsHandTracking(long struct)Unsafe version ofsupportsHandTracking().static voidnsupportsHandTracking(long struct, int value)Unsafe version ofsupportsHandTracking.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemHandTrackingPropertiesEXTset(int type, long next, boolean supportsHandTracking)Initializes this struct with the specified values.XrSystemHandTrackingPropertiesEXTset(XrSystemHandTrackingPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()booleansupportsHandTracking()anXrBool32, indicating if current system is capable of hand tracking input.XrSystemHandTrackingPropertiesEXTsupportsHandTracking(boolean value)Sets the specified value to thesupportsHandTracking()field.inttype()theXrStructureTypeof this structure.XrSystemHandTrackingPropertiesEXTtype(int value)Sets the specified value to thetype()field.XrSystemHandTrackingPropertiesEXTtype$Default()Sets theTYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSystemHandTrackingPropertiesEXT
public XrSystemHandTrackingPropertiesEXT(java.nio.ByteBuffer container)
Creates aXrSystemHandTrackingPropertiesEXTinstance 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.
-
supportsHandTracking
public boolean supportsHandTracking()
anXrBool32, indicating if current system is capable of hand tracking input.
-
type
public XrSystemHandTrackingPropertiesEXT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemHandTrackingPropertiesEXT type$Default()
Sets theTYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXTvalue to thetype()field.
-
next
public XrSystemHandTrackingPropertiesEXT next(long value)
Sets the specified value to thenext()field.
-
supportsHandTracking
public XrSystemHandTrackingPropertiesEXT supportsHandTracking(boolean value)
Sets the specified value to thesupportsHandTracking()field.
-
set
public XrSystemHandTrackingPropertiesEXT set(int type, long next, boolean supportsHandTracking)
Initializes this struct with the specified values.
-
set
public XrSystemHandTrackingPropertiesEXT set(XrSystemHandTrackingPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemHandTrackingPropertiesEXT malloc()
Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemHandTrackingPropertiesEXT calloc()
Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemHandTrackingPropertiesEXT create()
Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated withBufferUtils.
-
create
public static XrSystemHandTrackingPropertiesEXT create(long address)
Returns a newXrSystemHandTrackingPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemHandTrackingPropertiesEXT createSafe(long address)
-
malloc
public static XrSystemHandTrackingPropertiesEXT.Buffer malloc(int capacity)
Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemHandTrackingPropertiesEXT.Buffer calloc(int capacity)
Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemHandTrackingPropertiesEXT.Buffer create(int capacity)
Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemHandTrackingPropertiesEXT.Buffer create(long address, int capacity)
Create aXrSystemHandTrackingPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemHandTrackingPropertiesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemHandTrackingPropertiesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemHandTrackingPropertiesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemHandTrackingPropertiesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemHandTrackingPropertiesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingPropertiesEXT.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().
-
nsupportsHandTracking
public static int nsupportsHandTracking(long struct)
Unsafe version ofsupportsHandTracking().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsupportsHandTracking
public static void nsupportsHandTracking(long struct, int value)Unsafe version ofsupportsHandTracking.
-
-