Package org.lwjgl.openxr
Class XrSpacesLocateInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSpacesLocateInfo>
org.lwjgl.openxr.XrSpacesLocateInfo
org.lwjgl.openxr.XrSpacesLocateInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSpacesLocateInfoKHR {
XrStructureType type;
void const * next;
XrSpace baseSpace;
XrTime time;
uint32_t spaceCount;
XrSpace const * spaces;
}-
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
Fields inherited from class org.lwjgl.openxr.XrSpacesLocateInfo
ALIGNOF, BASESPACE, NEXT, SIZEOF, SPACECOUNT, SPACES, TIME, TYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpacesLocateInfoKHR(ByteBuffer container) Creates aXrSpacesLocateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionSets the specified value to thebaseSpacefield.static XrSpacesLocateInfoKHRcalloc()Returns a newXrSpacesLocateInfoKHRinstance allocated withmemCalloc.static XrSpacesLocateInfoKHR.Buffercalloc(int capacity) Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withmemCalloc.static XrSpacesLocateInfoKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpacesLocateInfoKHRcalloc(MemoryStack stack) Returns a newXrSpacesLocateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpacesLocateInfoKHRcreate()Returns a newXrSpacesLocateInfoKHRinstance allocated withBufferUtils.static XrSpacesLocateInfoKHR.Buffercreate(int capacity) Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withBufferUtils.static XrSpacesLocateInfoKHRcreate(long address) Returns a newXrSpacesLocateInfoKHRinstance for the specified memory address.static XrSpacesLocateInfoKHR.Buffercreate(long address, int capacity) Create aXrSpacesLocateInfoKHR.Bufferinstance at the specified memory.static @Nullable XrSpacesLocateInfoKHRcreateSafe(long address) static @Nullable XrSpacesLocateInfoKHR.BuffercreateSafe(long address, int capacity) static XrSpacesLocateInfoKHRmalloc()Returns a newXrSpacesLocateInfoKHRinstance allocated withmemAlloc.static XrSpacesLocateInfoKHR.Buffermalloc(int capacity) Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withmemAlloc.static XrSpacesLocateInfoKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrSpacesLocateInfoKHRmalloc(MemoryStack stack) Returns a newXrSpacesLocateInfoKHRinstance allocated on the specifiedMemoryStack.next(long value) Sets the specified value to thenextfield.set(int type, long next, XrSpace baseSpace, long time, PointerBuffer spaces) Initializes this struct with the specified values.set(XrSpacesLocateInfoKHR src) Copies the specified struct data to this struct.spaces(PointerBuffer value) Sets the address of the specifiedPointerBufferto thespacesfield.time(long value) Sets the specified value to thetimefield.type(int value) Sets the specified value to thetypefield.Sets theTYPE_SPACES_LOCATE_INFOvalue to thetypefield.Methods inherited from class org.lwjgl.openxr.XrSpacesLocateInfo
baseSpace, nbaseSpace, nbaseSpace, next, nnext, nnext, nspaceCount, nspaceCount, nspaces, nspaces, ntime, ntime, ntype, ntype, set, sizeof, spaceCount, spaces, time, type, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrSpacesLocateInfoKHR
Creates aXrSpacesLocateInfoKHRinstance 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
-
type
Sets the specified value to thetypefield.- Overrides:
typein classXrSpacesLocateInfo
-
type$Default
Sets theTYPE_SPACES_LOCATE_INFOvalue to thetypefield.- Overrides:
type$Defaultin classXrSpacesLocateInfo
-
next
Sets the specified value to thenextfield.- Overrides:
nextin classXrSpacesLocateInfo
-
baseSpace
Sets the specified value to thebaseSpacefield.- Overrides:
baseSpacein classXrSpacesLocateInfo
-
time
Sets the specified value to thetimefield.- Overrides:
timein classXrSpacesLocateInfo
-
spaces
Sets the address of the specifiedPointerBufferto thespacesfield.- Overrides:
spacesin classXrSpacesLocateInfo
-
set
public XrSpacesLocateInfoKHR set(int type, long next, XrSpace baseSpace, long time, PointerBuffer spaces) Initializes this struct with the specified values.- Overrides:
setin classXrSpacesLocateInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSpacesLocateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpacesLocateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpacesLocateInfoKHRinstance allocated withBufferUtils. -
create
Returns a newXrSpacesLocateInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpacesLocateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpacesLocateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpacesLocateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpacesLocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-