Package org.lwjgl.openxr
Class XrPlaneDetectorLocationsEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrPlaneDetectorLocationsEXT
extends Struct<XrPlaneDetectorLocationsEXT>
implements NativeResource
struct XrPlaneDetectorLocationsEXT {
XrStructureType type;
void * next;
uint32_t planeLocationCapacityInput;
uint32_t planeLocationCountOutput;
XrPlaneDetectorLocationEXT * planeLocations;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionXrPlaneDetectorLocationsEXT(ByteBuffer container) Creates aXrPlaneDetectorLocationsEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrPlaneDetectorLocationsEXTcalloc()Returns a newXrPlaneDetectorLocationsEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPlaneDetectorLocationsEXTcalloc(MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPlaneDetectorLocationsEXTcreate()Returns a newXrPlaneDetectorLocationsEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withBufferUtils.static XrPlaneDetectorLocationsEXTcreate(long address) Returns a newXrPlaneDetectorLocationsEXTinstance for the specified memory address.create(long address, int capacity) Create aXrPlaneDetectorLocationsEXT.Bufferinstance at the specified memory.static @Nullable XrPlaneDetectorLocationsEXTcreateSafe(long address) static @Nullable XrPlaneDetectorLocationsEXT.BuffercreateSafe(long address, int capacity) static XrPlaneDetectorLocationsEXTmalloc()Returns a newXrPlaneDetectorLocationsEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrPlaneDetectorLocationsEXTmalloc(MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXTinstance allocated on the specifiedMemoryStack.longnext()next(long value) Sets the specified value to thenextfield.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnplaneLocationCapacityInput(long struct) Unsafe version ofplaneLocationCapacityInput().static voidnplaneLocationCapacityInput(long struct, int value) Sets the specified value to theplaneLocationCapacityInputfield of the specifiedstruct.static intnplaneLocationCountOutput(long struct) Unsafe version ofplaneLocationCountOutput().static voidnplaneLocationCountOutput(long struct, int value) Unsafe version ofplaneLocationCountOutput.static @Nullable XrPlaneDetectorLocationEXT.BuffernplaneLocations(long struct) Unsafe version ofplaneLocations().static voidnplaneLocations(long struct, @Nullable XrPlaneDetectorLocationEXT.Buffer value) Unsafe version ofplaneLocations.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.intplaneLocationCapacityInput(int value) Sets the specified value to theplaneLocationCapacityInputfield.intplaneLocationCountOutput(int value) Sets the specified value to theplaneLocationCountOutputfield.@Nullable XrPlaneDetectorLocationEXT.BufferplaneLocations(@Nullable XrPlaneDetectorLocationEXT.Buffer value) Sets the address of the specifiedXrPlaneDetectorLocationEXT.Bufferto theplaneLocationsfield.set(int type, long next, int planeLocationCapacityInput, int planeLocationCountOutput, @Nullable XrPlaneDetectorLocationEXT.Buffer planeLocations) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_PLANE_DETECTOR_LOCATIONS_EXTvalue 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. -
PLANELOCATIONCAPACITYINPUT
public static final int PLANELOCATIONCAPACITYINPUTThe struct member offsets. -
PLANELOCATIONCOUNTOUTPUT
public static final int PLANELOCATIONCOUNTOUTPUTThe struct member offsets. -
PLANELOCATIONS
public static final int PLANELOCATIONSThe struct member offsets.
-
-
Constructor Details
-
XrPlaneDetectorLocationsEXT
Creates aXrPlaneDetectorLocationsEXTinstance 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<XrPlaneDetectorLocationsEXT>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
planeLocationCapacityInput
public int planeLocationCapacityInput()- Returns:
- the value of the
planeLocationCapacityInputfield.
-
planeLocationCountOutput
public int planeLocationCountOutput()- Returns:
- the value of the
planeLocationCountOutputfield.
-
planeLocations
- Returns:
- a
XrPlaneDetectorLocationEXT.Bufferview of the struct array pointed to by theplaneLocationsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_PLANE_DETECTOR_LOCATIONS_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
planeLocationCapacityInput
Sets the specified value to theplaneLocationCapacityInputfield. -
planeLocationCountOutput
Sets the specified value to theplaneLocationCountOutputfield. -
planeLocations
public XrPlaneDetectorLocationsEXT planeLocations(@Nullable XrPlaneDetectorLocationEXT.Buffer value) Sets the address of the specifiedXrPlaneDetectorLocationEXT.Bufferto theplaneLocationsfield. -
set
public XrPlaneDetectorLocationsEXT set(int type, long next, int planeLocationCapacityInput, int planeLocationCountOutput, @Nullable XrPlaneDetectorLocationEXT.Buffer planeLocations) 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 newXrPlaneDetectorLocationsEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrPlaneDetectorLocationsEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrPlaneDetectorLocationsEXTinstance allocated withBufferUtils. -
create
Returns a newXrPlaneDetectorLocationsEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrPlaneDetectorLocationsEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrPlaneDetectorLocationsEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrPlaneDetectorLocationsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrPlaneDetectorLocationsEXT.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(). -
nplaneLocationCapacityInput
public static int nplaneLocationCapacityInput(long struct) Unsafe version ofplaneLocationCapacityInput(). -
nplaneLocationCountOutput
public static int nplaneLocationCountOutput(long struct) Unsafe version ofplaneLocationCountOutput(). -
nplaneLocations
Unsafe version ofplaneLocations(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nplaneLocationCapacityInput
public static void nplaneLocationCapacityInput(long struct, int value) Sets the specified value to theplaneLocationCapacityInputfield of the specifiedstruct. -
nplaneLocationCountOutput
public static void nplaneLocationCountOutput(long struct, int value) Unsafe version ofplaneLocationCountOutput. -
nplaneLocations
Unsafe version ofplaneLocations.
-