Package org.lwjgl.openxr
Class XrPlaneDetectorLocationsEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrPlaneDetectorLocationsEXT>
org.lwjgl.openxr.XrPlaneDetectorLocationsEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPlaneDetectorLocationsEXT
extends org.lwjgl.system.Struct<XrPlaneDetectorLocationsEXT>
implements org.lwjgl.system.NativeResource
Contains the plane information.
Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to usingXrPlaneDetectorLocationsEXT typemust beTYPE_PLANE_DETECTOR_LOCATIONS_EXTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
planeLocationCapacityInputis not 0,planeLocationsmust be a pointer to an array ofplaneLocationCapacityInputXrPlaneDetectorLocationEXTstructures
See Also
XrPlaneDetectorLocationEXT, GetPlaneDetectionsEXT
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPlaneDetectorLocationsEXTcalloc(org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrPlaneDetectorLocationsEXTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.next(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 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.intthe capacity of the array, or 0 to indicate a request to retrieve the required capacity.planeLocationCapacityInput(int value) Sets the specified value to theplaneLocationCapacityInput()field.intthe number of planes, or the required capacity in the case thatplaneLocationCapacityInputis insufficient.planeLocationCountOutput(int value) Sets the specified value to theplaneLocationCountOutput()field.@Nullable XrPlaneDetectorLocationEXT.Bufferan array ofXrPlaneDetectorLocationEXT.planeLocations(@Nullable XrPlaneDetectorLocationEXT.Buffer value) Sets the address of the specifiedXrPlaneDetectorLocationEXT.Bufferto theplaneLocations()field.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()inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_PLANE_DETECTOR_LOCATIONS_EXTvalue to thetype()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrPlaneDetectorLocationsEXT>
-
type
public int type()theXrStructureTypeof this structure. -
next
public long next()NULLor a pointer to the next structure in a structure chain. -
planeLocationCapacityInput
public int planeLocationCapacityInput()the capacity of the array, or 0 to indicate a request to retrieve the required capacity. -
planeLocationCountOutput
public int planeLocationCountOutput()the number of planes, or the required capacity in the case thatplaneLocationCapacityInputis insufficient. -
planeLocations
-
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_PLANE_DETECTOR_LOCATIONS_EXTvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
planeLocationCapacityInput
Sets the specified value to theplaneLocationCapacityInput()field. -
planeLocationCountOutput
Sets the specified value to theplaneLocationCountOutput()field. -
planeLocations
public XrPlaneDetectorLocationsEXT planeLocations(@Nullable XrPlaneDetectorLocationEXT.Buffer value) Sets the address of the specifiedXrPlaneDetectorLocationEXT.Bufferto theplaneLocations()field. -
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
public static XrPlaneDetectorLocationsEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrPlaneDetectorLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrPlaneDetectorLocationsEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) 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.
-