Package org.lwjgl.openxr
Class XrViveTrackerPathsHTCX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViveTrackerPathsHTCX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViveTrackerPathsHTCX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStruct contains two paths of VIVE tracker.Description
The
XrViveTrackerPathsHTCXstructure contains two paths of VIVE tracker.Valid Usage (Implicit)
- The
XR_HTCX_vive_tracker_interactionextension must be enabled prior to usingXrViveTrackerPathsHTCX typemust beTYPE_VIVE_TRACKER_PATHS_HTCXnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrEventDataViveTrackerConnectedHTCX,EnumerateViveTrackerPathsHTCXLayout
struct XrViveTrackerPathsHTCX { XrStructureTypetype(); void *next(); XrPathpersistentPath(); XrPathrolePath(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViveTrackerPathsHTCX.BufferAn array ofXrViveTrackerPathsHTCXstructs.
-
Constructor Summary
Constructors Constructor Description XrViveTrackerPathsHTCX(java.nio.ByteBuffer container)Creates aXrViveTrackerPathsHTCXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViveTrackerPathsHTCXcalloc()Returns a newXrViveTrackerPathsHTCXinstance allocated withmemCalloc.static XrViveTrackerPathsHTCX.Buffercalloc(int capacity)Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withmemCalloc.static XrViveTrackerPathsHTCX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViveTrackerPathsHTCXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViveTrackerPathsHTCXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViveTrackerPathsHTCXcreate()Returns a newXrViveTrackerPathsHTCXinstance allocated withBufferUtils.static XrViveTrackerPathsHTCX.Buffercreate(int capacity)Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withBufferUtils.static XrViveTrackerPathsHTCXcreate(long address)Returns a newXrViveTrackerPathsHTCXinstance for the specified memory address.static XrViveTrackerPathsHTCX.Buffercreate(long address, int capacity)Create aXrViveTrackerPathsHTCX.Bufferinstance at the specified memory.static XrViveTrackerPathsHTCXcreateSafe(long address)static XrViveTrackerPathsHTCX.BuffercreateSafe(long address, int capacity)static XrViveTrackerPathsHTCXmalloc()Returns a newXrViveTrackerPathsHTCXinstance allocated withmemAlloc.static XrViveTrackerPathsHTCX.Buffermalloc(int capacity)Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withmemAlloc.static XrViveTrackerPathsHTCX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated on the specifiedMemoryStack.static XrViveTrackerPathsHTCXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViveTrackerPathsHTCXinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrViveTrackerPathsHTCXnext(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 longnpersistentPath(long struct)Unsafe version ofpersistentPath().static longnrolePath(long struct)Unsafe version ofrolePath().static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longpersistentPath()the unique path of the VIVE tracker which is persistent over the lifetime of the hardware.longrolePath()the path of the VIVE tracker role.XrViveTrackerPathsHTCXset(int type, long next)Initializes this struct with the specified values.XrViveTrackerPathsHTCXset(XrViveTrackerPathsHTCX src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrViveTrackerPathsHTCXtype(int value)Sets the specified value to thetype()field.XrViveTrackerPathsHTCXtype$Default()Sets theTYPE_VIVE_TRACKER_PATHS_HTCXvalue to thetype()field.
-
-
-
Constructor Detail
-
XrViveTrackerPathsHTCX
public XrViveTrackerPathsHTCX(java.nio.ByteBuffer container)
Creates aXrViveTrackerPathsHTCXinstance 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.
-
persistentPath
public long persistentPath()
the unique path of the VIVE tracker which is persistent over the lifetime of the hardware.
-
rolePath
public long rolePath()
the path of the VIVE tracker role. This may beNULL_PATHif the role is not assigned.
-
type
public XrViveTrackerPathsHTCX type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrViveTrackerPathsHTCX type$Default()
Sets theTYPE_VIVE_TRACKER_PATHS_HTCXvalue to thetype()field.
-
next
public XrViveTrackerPathsHTCX next(long value)
Sets the specified value to thenext()field.
-
set
public XrViveTrackerPathsHTCX set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrViveTrackerPathsHTCX set(XrViveTrackerPathsHTCX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViveTrackerPathsHTCX malloc()
Returns a newXrViveTrackerPathsHTCXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViveTrackerPathsHTCX calloc()
Returns a newXrViveTrackerPathsHTCXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViveTrackerPathsHTCX create()
Returns a newXrViveTrackerPathsHTCXinstance allocated withBufferUtils.
-
create
public static XrViveTrackerPathsHTCX create(long address)
Returns a newXrViveTrackerPathsHTCXinstance for the specified memory address.
-
createSafe
@Nullable public static XrViveTrackerPathsHTCX createSafe(long address)
-
malloc
public static XrViveTrackerPathsHTCX.Buffer malloc(int capacity)
Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViveTrackerPathsHTCX.Buffer calloc(int capacity)
Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViveTrackerPathsHTCX.Buffer create(int capacity)
Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViveTrackerPathsHTCX.Buffer create(long address, int capacity)
Create aXrViveTrackerPathsHTCX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViveTrackerPathsHTCX.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViveTrackerPathsHTCX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViveTrackerPathsHTCXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViveTrackerPathsHTCX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViveTrackerPathsHTCXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViveTrackerPathsHTCX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViveTrackerPathsHTCX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViveTrackerPathsHTCX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViveTrackerPathsHTCX.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().
-
npersistentPath
public static long npersistentPath(long struct)
Unsafe version ofpersistentPath().
-
nrolePath
public static long nrolePath(long struct)
Unsafe version ofrolePath().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-