Package org.lwjgl.openxr
Class XrEventDataViveTrackerConnectedHTCX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataViveTrackerConnectedHTCX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataViveTrackerConnectedHTCX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent representing a new VIVE tracker connected.Description
Receiving the
XrEventDataViveTrackerConnectedHTCXevent structure indicates that a new VIVE tracker was connected or its role changed. It is received viaPollEvent.Valid Usage (Implicit)
- The
XR_HTCX_vive_tracker_interactionextension must be enabled prior to usingXrEventDataViveTrackerConnectedHTCX typemust beTYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCXnextmust beNULLor a valid pointer to the next structure in a structure chainpathsmust be a pointer to anXrViveTrackerPathsHTCXstructure
See Also
XrViveTrackerPathsHTCX,PollEventLayout
struct XrEventDataViveTrackerConnectedHTCX { XrStructureTypetype(); void const *next();XrViveTrackerPathsHTCX*paths(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataViveTrackerConnectedHTCX.BufferAn array ofXrEventDataViveTrackerConnectedHTCXstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataViveTrackerConnectedHTCX(java.nio.ByteBuffer container)Creates aXrEventDataViveTrackerConnectedHTCXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataViveTrackerConnectedHTCXcalloc()Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withmemCalloc.static XrEventDataViveTrackerConnectedHTCX.Buffercalloc(int capacity)Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withmemCalloc.static XrEventDataViveTrackerConnectedHTCX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataViveTrackerConnectedHTCXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataViveTrackerConnectedHTCXcreate()Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withBufferUtils.static XrEventDataViveTrackerConnectedHTCX.Buffercreate(int capacity)Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withBufferUtils.static XrEventDataViveTrackerConnectedHTCXcreate(long address)Returns a newXrEventDataViveTrackerConnectedHTCXinstance for the specified memory address.static XrEventDataViveTrackerConnectedHTCX.Buffercreate(long address, int capacity)Create aXrEventDataViveTrackerConnectedHTCX.Bufferinstance at the specified memory.static XrEventDataViveTrackerConnectedHTCXcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataViveTrackerConnectedHTCX.static XrEventDataViveTrackerConnectedHTCX.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataViveTrackerConnectedHTCX.Buffer.static XrEventDataViveTrackerConnectedHTCXcreateSafe(long address)static XrEventDataViveTrackerConnectedHTCX.BuffercreateSafe(long address, int capacity)static XrEventDataViveTrackerConnectedHTCXmalloc()Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withmemAlloc.static XrEventDataViveTrackerConnectedHTCX.Buffermalloc(int capacity)Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withmemAlloc.static XrEventDataViveTrackerConnectedHTCX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataViveTrackerConnectedHTCXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataViveTrackerConnectedHTCXnext(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 XrViveTrackerPathsHTCXnpaths(long struct)Unsafe version ofpaths().static voidnpaths(long struct, XrViveTrackerPathsHTCX value)Unsafe version ofpaths.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrViveTrackerPathsHTCXpaths()contains two paths of the connected VIVE tracker.XrEventDataViveTrackerConnectedHTCXpaths(XrViveTrackerPathsHTCX value)Sets the address of the specifiedXrViveTrackerPathsHTCXto thepaths()field.XrEventDataViveTrackerConnectedHTCXset(int type, long next, XrViveTrackerPathsHTCX paths)Initializes this struct with the specified values.XrEventDataViveTrackerConnectedHTCXset(XrEventDataViveTrackerConnectedHTCX src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataViveTrackerConnectedHTCXtype(int value)Sets the specified value to thetype()field.XrEventDataViveTrackerConnectedHTCXtype$Default()Sets theTYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCXvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrEventDataViveTrackerConnectedHTCX
public XrEventDataViveTrackerConnectedHTCX(java.nio.ByteBuffer container)
Creates aXrEventDataViveTrackerConnectedHTCXinstance 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.
-
paths
public XrViveTrackerPathsHTCX paths()
contains two paths of the connected VIVE tracker.
-
type
public XrEventDataViveTrackerConnectedHTCX type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataViveTrackerConnectedHTCX type$Default()
Sets theTYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCXvalue to thetype()field.
-
next
public XrEventDataViveTrackerConnectedHTCX next(long value)
Sets the specified value to thenext()field.
-
paths
public XrEventDataViveTrackerConnectedHTCX paths(XrViveTrackerPathsHTCX value)
Sets the address of the specifiedXrViveTrackerPathsHTCXto thepaths()field.
-
set
public XrEventDataViveTrackerConnectedHTCX set(int type, long next, XrViveTrackerPathsHTCX paths)
Initializes this struct with the specified values.
-
set
public XrEventDataViveTrackerConnectedHTCX set(XrEventDataViveTrackerConnectedHTCX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataViveTrackerConnectedHTCX malloc()
Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataViveTrackerConnectedHTCX calloc()
Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataViveTrackerConnectedHTCX create()
Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated withBufferUtils.
-
create
public static XrEventDataViveTrackerConnectedHTCX create(long address)
Returns a newXrEventDataViveTrackerConnectedHTCXinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataViveTrackerConnectedHTCX createSafe(long address)
-
create
public static XrEventDataViveTrackerConnectedHTCX create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataViveTrackerConnectedHTCX.
-
malloc
public static XrEventDataViveTrackerConnectedHTCX.Buffer malloc(int capacity)
Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataViveTrackerConnectedHTCX.Buffer calloc(int capacity)
Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataViveTrackerConnectedHTCX.Buffer create(int capacity)
Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataViveTrackerConnectedHTCX.Buffer create(long address, int capacity)
Create aXrEventDataViveTrackerConnectedHTCX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataViveTrackerConnectedHTCX.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataViveTrackerConnectedHTCX.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataViveTrackerConnectedHTCX.Buffer.
-
malloc
public static XrEventDataViveTrackerConnectedHTCX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataViveTrackerConnectedHTCX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataViveTrackerConnectedHTCXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataViveTrackerConnectedHTCX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataViveTrackerConnectedHTCX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataViveTrackerConnectedHTCX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataViveTrackerConnectedHTCX.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().
-
npaths
public static XrViveTrackerPathsHTCX npaths(long struct)
Unsafe version ofpaths().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
npaths
public static void npaths(long struct, XrViveTrackerPathsHTCX value)Unsafe version ofpaths.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-