Package org.lwjgl.openxr
Class XrTrackableObjectANDROID
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrTrackableObjectANDROID
extends Struct<XrTrackableObjectANDROID>
implements NativeResource
struct XrTrackableObjectANDROID {
XrStructureType type;
void * next;
XrTrackingStateANDROID trackingState;
XrPosef centerPose;
XrExtent3DfEXT extents;
XrObjectLabelANDROID objectLabel;
XrTime lastUpdatedTime;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrTrackableObjectANDROID(ByteBuffer container) Creates aXrTrackableObjectANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrTrackableObjectANDROIDcalloc()Returns a newXrTrackableObjectANDROIDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrTrackableObjectANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTrackableObjectANDROIDcalloc(MemoryStack stack) Returns a newXrTrackableObjectANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.centerPose(Consumer<XrPosef> consumer) Passes thecenterPosefield to the specifiedConsumer.centerPose(XrPosef value) Copies the specifiedXrPosefto thecenterPosefield.static XrTrackableObjectANDROIDcreate()Returns a newXrTrackableObjectANDROIDinstance allocated withBufferUtils.create(int capacity) Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withBufferUtils.static XrTrackableObjectANDROIDcreate(long address) Returns a newXrTrackableObjectANDROIDinstance for the specified memory address.create(long address, int capacity) Create aXrTrackableObjectANDROID.Bufferinstance at the specified memory.static @Nullable XrTrackableObjectANDROIDcreateSafe(long address) static @Nullable XrTrackableObjectANDROID.BuffercreateSafe(long address, int capacity) extents()extents(Consumer<XrExtent3DfEXT> consumer) Passes theextentsfield to the specifiedConsumer.extents(XrExtent3DfEXT value) Copies the specifiedXrExtent3DfEXTto theextentsfield.longlastUpdatedTime(long value) Sets the specified value to thelastUpdatedTimefield.static XrTrackableObjectANDROIDmalloc()Returns a newXrTrackableObjectANDROIDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrTrackableObjectANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrTrackableObjectANDROIDmalloc(MemoryStack stack) Returns a newXrTrackableObjectANDROIDinstance allocated on the specifiedMemoryStack.static XrPosefncenterPose(long struct) Unsafe version ofcenterPose().static voidncenterPose(long struct, XrPosef value) Unsafe version ofcenterPose.longnext()next(long value) Sets the specified value to thenextfield.static XrExtent3DfEXTnextents(long struct) Unsafe version ofextents().static voidnextents(long struct, XrExtent3DfEXT value) Unsafe version ofextents.static longnlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime().static voidnlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnobjectLabel(long struct) Unsafe version ofobjectLabel().static voidnobjectLabel(long struct, int value) Unsafe version ofobjectLabel.static intntrackingState(long struct) Unsafe version oftrackingState().static voidntrackingState(long struct, int value) Unsafe version oftrackingState.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.intobjectLabel(int value) Sets the specified value to theobjectLabelfield.set(int type, long next, int trackingState, XrPosef centerPose, XrExtent3DfEXT extents, int objectLabel, long lastUpdatedTime) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttrackingState(int value) Sets the specified value to thetrackingStatefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_TRACKABLE_OBJECT_ANDROIDvalue to thetypefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
TRACKINGSTATE
public static final int TRACKINGSTATEThe struct member offsets. -
CENTERPOSE
public static final int CENTERPOSEThe struct member offsets. -
EXTENTS
public static final int EXTENTSThe struct member offsets. -
OBJECTLABEL
public static final int OBJECTLABELThe struct member offsets. -
LASTUPDATEDTIME
public static final int LASTUPDATEDTIMEThe struct member offsets.
-
-
Constructor Details
-
XrTrackableObjectANDROID
Creates aXrTrackableObjectANDROIDinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrTrackableObjectANDROID>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
trackingState
public int trackingState()- Returns:
- the value of the
trackingStatefield.
-
centerPose
- Returns:
- a
XrPosefview of thecenterPosefield.
-
extents
- Returns:
- a
XrExtent3DfEXTview of theextentsfield.
-
objectLabel
public int objectLabel()- Returns:
- the value of the
objectLabelfield.
-
lastUpdatedTime
public long lastUpdatedTime()- Returns:
- the value of the
lastUpdatedTimefield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_TRACKABLE_OBJECT_ANDROIDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
trackingState
Sets the specified value to thetrackingStatefield. -
centerPose
Copies the specifiedXrPosefto thecenterPosefield. -
centerPose
Passes thecenterPosefield to the specifiedConsumer. -
extents
Copies the specifiedXrExtent3DfEXTto theextentsfield. -
extents
Passes theextentsfield to the specifiedConsumer. -
objectLabel
Sets the specified value to theobjectLabelfield. -
lastUpdatedTime
Sets the specified value to thelastUpdatedTimefield. -
set
public XrTrackableObjectANDROID set(int type, long next, int trackingState, XrPosef centerPose, XrExtent3DfEXT extents, int objectLabel, long lastUpdatedTime) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrTrackableObjectANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrTrackableObjectANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrTrackableObjectANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrTrackableObjectANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrTrackableObjectANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrTrackableObjectANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrTrackableObjectANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrTrackableObjectANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrTrackableObjectANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrTrackableObjectANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ntrackingState
public static int ntrackingState(long struct) Unsafe version oftrackingState(). -
ncenterPose
Unsafe version ofcenterPose(). -
nextents
Unsafe version ofextents(). -
nobjectLabel
public static int nobjectLabel(long struct) Unsafe version ofobjectLabel(). -
nlastUpdatedTime
public static long nlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ntrackingState
public static void ntrackingState(long struct, int value) Unsafe version oftrackingState. -
ncenterPose
Unsafe version ofcenterPose. -
nextents
Unsafe version ofextents. -
nobjectLabel
public static void nobjectLabel(long struct, int value) Unsafe version ofobjectLabel. -
nlastUpdatedTime
public static void nlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime.
-