Package org.lwjgl.openxr
Class XrTrackablePlaneANDROID
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrTrackablePlaneANDROID
extends Struct<XrTrackablePlaneANDROID>
implements NativeResource
struct XrTrackablePlaneANDROID {
XrStructureType type;
void * next;
XrTrackingStateANDROID trackingState;
XrPosef centerPose;
XrExtent2Df extents;
XrPlaneTypeANDROID planeType;
XrPlaneLabelANDROID planeLabel;
XrTrackableANDROID subsumedByPlane;
XrTime lastUpdatedTime;
uint32_t vertexCapacityInput;
uint32_t * vertexCountOutput;
XrVector2f * vertices;
}-
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 member offsets.static final intThe struct size 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 member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrTrackablePlaneANDROID(ByteBuffer container) Creates aXrTrackablePlaneANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrTrackablePlaneANDROIDcalloc()Returns a newXrTrackablePlaneANDROIDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTrackablePlaneANDROIDcalloc(MemoryStack stack) Returns a newXrTrackablePlaneANDROIDinstance 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 XrTrackablePlaneANDROIDcreate()Returns a newXrTrackablePlaneANDROIDinstance allocated withBufferUtils.create(int capacity) Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withBufferUtils.static XrTrackablePlaneANDROIDcreate(long address) Returns a newXrTrackablePlaneANDROIDinstance for the specified memory address.create(long address, int capacity) Create aXrTrackablePlaneANDROID.Bufferinstance at the specified memory.static @Nullable XrTrackablePlaneANDROIDcreateSafe(long address) static @Nullable XrTrackablePlaneANDROID.BuffercreateSafe(long address, int capacity) extents()extents(Consumer<XrExtent2Df> consumer) Passes theextentsfield to the specifiedConsumer.extents(XrExtent2Df value) Copies the specifiedXrExtent2Dfto theextentsfield.longlastUpdatedTime(long value) Sets the specified value to thelastUpdatedTimefield.static XrTrackablePlaneANDROIDmalloc()Returns a newXrTrackablePlaneANDROIDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrTrackablePlaneANDROIDmalloc(MemoryStack stack) Returns a newXrTrackablePlaneANDROIDinstance 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 XrExtent2Dfnextents(long struct) Unsafe version ofextents().static voidnextents(long struct, XrExtent2Df 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 intnplaneLabel(long struct) Unsafe version ofplaneLabel().static voidnplaneLabel(long struct, int value) Unsafe version ofplaneLabel.static intnplaneType(long struct) Unsafe version ofplaneType().static voidnplaneType(long struct, int value) Unsafe version ofplaneType.static longnsubsumedByPlane(long struct) Unsafe version ofsubsumedByPlane().static voidnsubsumedByPlane(long struct, long value) Unsafe version ofsubsumedByPlane.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.static intnvertexCapacityInput(long struct) Unsafe version ofvertexCapacityInput().static voidnvertexCapacityInput(long struct, int value) Sets the specified value to thevertexCapacityInputfield of the specifiedstruct.static @Nullable IntBuffernvertexCountOutput(long struct, int capacity) Unsafe version ofvertexCountOutput.static voidnvertexCountOutput(long struct, @Nullable IntBuffer value) Unsafe version ofvertexCountOutput.static @Nullable XrVector2f.Buffernvertices(long struct) Unsafe version ofvertices().static voidnvertices(long struct, @Nullable XrVector2f.Buffer value) Unsafe version ofvertices.intplaneLabel(int value) Sets the specified value to theplaneLabelfield.intplaneType(int value) Sets the specified value to theplaneTypefield.set(int type, long next, int trackingState, XrPosef centerPose, XrExtent2Df extents, int planeType, int planeLabel, long subsumedByPlane, long lastUpdatedTime, int vertexCapacityInput, @Nullable IntBuffer vertexCountOutput, @Nullable XrVector2f.Buffer vertices) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longsubsumedByPlane(long value) Sets the specified value to thesubsumedByPlanefield.inttrackingState(int value) Sets the specified value to thetrackingStatefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_TRACKABLE_PLANE_ANDROIDvalue to thetypefield.intvertexCapacityInput(int value) Sets the specified value to thevertexCapacityInputfield.@Nullable IntBuffervertexCountOutput(int capacity) vertexCountOutput(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thevertexCountOutputfield.@Nullable XrVector2f.Buffervertices()vertices(@Nullable XrVector2f.Buffer value) Sets the address of the specifiedXrVector2f.Bufferto theverticesfield.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. -
PLANETYPE
public static final int PLANETYPEThe struct member offsets. -
PLANELABEL
public static final int PLANELABELThe struct member offsets. -
SUBSUMEDBYPLANE
public static final int SUBSUMEDBYPLANEThe struct member offsets. -
LASTUPDATEDTIME
public static final int LASTUPDATEDTIMEThe struct member offsets. -
VERTEXCAPACITYINPUT
public static final int VERTEXCAPACITYINPUTThe struct member offsets. -
VERTEXCOUNTOUTPUT
public static final int VERTEXCOUNTOUTPUTThe struct member offsets. -
VERTICES
public static final int VERTICESThe struct member offsets.
-
-
Constructor Details
-
XrTrackablePlaneANDROID
Creates aXrTrackablePlaneANDROIDinstance 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<XrTrackablePlaneANDROID>
-
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
XrExtent2Dfview of theextentsfield.
-
planeType
public int planeType()- Returns:
- the value of the
planeTypefield.
-
planeLabel
public int planeLabel()- Returns:
- the value of the
planeLabelfield.
-
subsumedByPlane
public long subsumedByPlane()- Returns:
- the value of the
subsumedByPlanefield.
-
lastUpdatedTime
public long lastUpdatedTime()- Returns:
- the value of the
lastUpdatedTimefield.
-
vertexCapacityInput
public int vertexCapacityInput()- Returns:
- the value of the
vertexCapacityInputfield.
-
vertexCountOutput
- Returns:
- a
IntBufferview of the data pointed to by thevertexCountOutputfield.
-
vertices
- Returns:
- a
XrVector2f.Bufferview of the struct array pointed to by theverticesfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_TRACKABLE_PLANE_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 specifiedXrExtent2Dfto theextentsfield. -
extents
Passes theextentsfield to the specifiedConsumer. -
planeType
Sets the specified value to theplaneTypefield. -
planeLabel
Sets the specified value to theplaneLabelfield. -
subsumedByPlane
Sets the specified value to thesubsumedByPlanefield. -
lastUpdatedTime
Sets the specified value to thelastUpdatedTimefield. -
vertexCapacityInput
Sets the specified value to thevertexCapacityInputfield. -
vertexCountOutput
Sets the address of the specifiedIntBufferto thevertexCountOutputfield. -
vertices
Sets the address of the specifiedXrVector2f.Bufferto theverticesfield. -
set
public XrTrackablePlaneANDROID set(int type, long next, int trackingState, XrPosef centerPose, XrExtent2Df extents, int planeType, int planeLabel, long subsumedByPlane, long lastUpdatedTime, int vertexCapacityInput, @Nullable IntBuffer vertexCountOutput, @Nullable XrVector2f.Buffer vertices) 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 newXrTrackablePlaneANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrTrackablePlaneANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrTrackablePlaneANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrTrackablePlaneANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrTrackablePlaneANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrTrackablePlaneANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrTrackablePlaneANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrTrackablePlaneANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrTrackablePlaneANDROID.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(). -
nplaneType
public static int nplaneType(long struct) Unsafe version ofplaneType(). -
nplaneLabel
public static int nplaneLabel(long struct) Unsafe version ofplaneLabel(). -
nsubsumedByPlane
public static long nsubsumedByPlane(long struct) Unsafe version ofsubsumedByPlane(). -
nlastUpdatedTime
public static long nlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime(). -
nvertexCapacityInput
public static int nvertexCapacityInput(long struct) Unsafe version ofvertexCapacityInput(). -
nvertexCountOutput
Unsafe version ofvertexCountOutput. -
nvertices
Unsafe version ofvertices(). -
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. -
nplaneType
public static void nplaneType(long struct, int value) Unsafe version ofplaneType. -
nplaneLabel
public static void nplaneLabel(long struct, int value) Unsafe version ofplaneLabel. -
nsubsumedByPlane
public static void nsubsumedByPlane(long struct, long value) Unsafe version ofsubsumedByPlane. -
nlastUpdatedTime
public static void nlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime. -
nvertexCapacityInput
public static void nvertexCapacityInput(long struct, int value) Sets the specified value to thevertexCapacityInputfield of the specifiedstruct. -
nvertexCountOutput
Unsafe version ofvertexCountOutput. -
nvertices
Unsafe version ofvertices.
-