Package org.lwjgl.openxr
Class XrEventDataReferenceSpaceChangePending
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataReferenceSpaceChangePending
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataReferenceSpaceChangePending extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceNotifies the application that a reference space is changing.Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDINGnextmust beNULLor a valid pointer to the next structure in a structure chainsessionmust be a validXrSessionhandlereferenceSpaceTypemust be a validXrReferenceSpaceTypevalue
See Also
Layout
struct XrEventDataReferenceSpaceChangePending { XrStructureTypetype(); void const *next(); XrSessionsession(); XrReferenceSpaceTypereferenceSpaceType(); XrTimechangeTime(); XrBool32poseValid();XrPosefposeInPreviousSpace(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataReferenceSpaceChangePending.BufferAn array ofXrEventDataReferenceSpaceChangePendingstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCHANGETIME
NEXT
POSEINPREVIOUSSPACE
POSEVALID
REFERENCESPACETYPE
SESSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrEventDataReferenceSpaceChangePending(java.nio.ByteBuffer container)Creates aXrEventDataReferenceSpaceChangePendinginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataReferenceSpaceChangePendingcalloc()Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withmemCalloc.static XrEventDataReferenceSpaceChangePending.Buffercalloc(int capacity)Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withmemCalloc.static XrEventDataReferenceSpaceChangePending.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataReferenceSpaceChangePendingcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longchangeTime()the targetXrTimeafter whichLocateSpaceorLocateViewswill return values that respect this change.XrEventDataReferenceSpaceChangePendingchangeTime(long value)Sets the specified value to thechangeTime()field.static XrEventDataReferenceSpaceChangePendingcreate()Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withBufferUtils.static XrEventDataReferenceSpaceChangePending.Buffercreate(int capacity)Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withBufferUtils.static XrEventDataReferenceSpaceChangePendingcreate(long address)Returns a newXrEventDataReferenceSpaceChangePendinginstance for the specified memory address.static XrEventDataReferenceSpaceChangePending.Buffercreate(long address, int capacity)Create aXrEventDataReferenceSpaceChangePending.Bufferinstance at the specified memory.static XrEventDataReferenceSpaceChangePendingcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataReferenceSpaceChangePending.static XrEventDataReferenceSpaceChangePending.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataReferenceSpaceChangePending.Buffer.static XrEventDataReferenceSpaceChangePendingcreateSafe(long address)static XrEventDataReferenceSpaceChangePending.BuffercreateSafe(long address, int capacity)static XrEventDataReferenceSpaceChangePendingmalloc()Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withmemAlloc.static XrEventDataReferenceSpaceChangePending.Buffermalloc(int capacity)Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withmemAlloc.static XrEventDataReferenceSpaceChangePending.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataReferenceSpaceChangePendingmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated on the specifiedMemoryStack.static longnchangeTime(long struct)Unsafe version ofchangeTime().static voidnchangeTime(long struct, long value)Unsafe version ofchangeTime.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataReferenceSpaceChangePendingnext(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 XrPosefnposeInPreviousSpace(long struct)Unsafe version ofposeInPreviousSpace().static voidnposeInPreviousSpace(long struct, XrPosef value)Unsafe version ofposeInPreviousSpace.static intnposeValid(long struct)Unsafe version ofposeValid().static voidnposeValid(long struct, int value)Unsafe version ofposeValid.static intnreferenceSpaceType(long struct)Unsafe version ofreferenceSpaceType().static voidnreferenceSpaceType(long struct, int value)Unsafe version ofreferenceSpaceType.static longnsession(long struct)Unsafe version ofsession().static voidnsession(long struct, XrSession value)Unsafe version ofsession.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefposeInPreviousSpace()anXrPosefdefining the position and orientation of the new reference space’s natural origin within the natural reference frame of its previous space.XrEventDataReferenceSpaceChangePendingposeInPreviousSpace(java.util.function.Consumer<XrPosef> consumer)Passes theposeInPreviousSpace()field to the specifiedConsumer.XrEventDataReferenceSpaceChangePendingposeInPreviousSpace(XrPosef value)Copies the specifiedXrPosefto theposeInPreviousSpace()field.booleanposeValid()true if the runtime can determine theposeof the new space in the previous space before the change.XrEventDataReferenceSpaceChangePendingposeValid(boolean value)Sets the specified value to theposeValid()field.intreferenceSpaceType()theXrReferenceSpaceTypethat is changing.XrEventDataReferenceSpaceChangePendingreferenceSpaceType(int value)Sets the specified value to thereferenceSpaceType()field.longsession()theXrSessionfor which the reference space is changing.XrEventDataReferenceSpaceChangePendingsession(XrSession value)Sets the specified value to thesession()field.XrEventDataReferenceSpaceChangePendingset(int type, long next, XrSession session, int referenceSpaceType, long changeTime, boolean poseValid, XrPosef poseInPreviousSpace)Initializes this struct with the specified values.XrEventDataReferenceSpaceChangePendingset(XrEventDataReferenceSpaceChangePending src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataReferenceSpaceChangePendingtype(int value)Sets the specified value to thetype()field.XrEventDataReferenceSpaceChangePendingtype$Default()Sets theTYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDINGvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrEventDataReferenceSpaceChangePending
public XrEventDataReferenceSpaceChangePending(java.nio.ByteBuffer container)
Creates aXrEventDataReferenceSpaceChangePendinginstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
session
public long session()
theXrSessionfor which the reference space is changing.
-
referenceSpaceType
public int referenceSpaceType()
theXrReferenceSpaceTypethat is changing.
-
changeTime
public long changeTime()
the targetXrTimeafter whichLocateSpaceorLocateViewswill return values that respect this change.
-
poseValid
public boolean poseValid()
true if the runtime can determine theposeof the new space in the previous space before the change.
-
poseInPreviousSpace
public XrPosef poseInPreviousSpace()
anXrPosefdefining the position and orientation of the new reference space’s natural origin within the natural reference frame of its previous space.
-
type
public XrEventDataReferenceSpaceChangePending type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataReferenceSpaceChangePending type$Default()
Sets theTYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDINGvalue to thetype()field.
-
next
public XrEventDataReferenceSpaceChangePending next(long value)
Sets the specified value to thenext()field.
-
session
public XrEventDataReferenceSpaceChangePending session(XrSession value)
Sets the specified value to thesession()field.
-
referenceSpaceType
public XrEventDataReferenceSpaceChangePending referenceSpaceType(int value)
Sets the specified value to thereferenceSpaceType()field.
-
changeTime
public XrEventDataReferenceSpaceChangePending changeTime(long value)
Sets the specified value to thechangeTime()field.
-
poseValid
public XrEventDataReferenceSpaceChangePending poseValid(boolean value)
Sets the specified value to theposeValid()field.
-
poseInPreviousSpace
public XrEventDataReferenceSpaceChangePending poseInPreviousSpace(XrPosef value)
Copies the specifiedXrPosefto theposeInPreviousSpace()field.
-
poseInPreviousSpace
public XrEventDataReferenceSpaceChangePending poseInPreviousSpace(java.util.function.Consumer<XrPosef> consumer)
Passes theposeInPreviousSpace()field to the specifiedConsumer.
-
set
public XrEventDataReferenceSpaceChangePending set(int type, long next, XrSession session, int referenceSpaceType, long changeTime, boolean poseValid, XrPosef poseInPreviousSpace)
Initializes this struct with the specified values.
-
set
public XrEventDataReferenceSpaceChangePending set(XrEventDataReferenceSpaceChangePending src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataReferenceSpaceChangePending malloc()
Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataReferenceSpaceChangePending calloc()
Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataReferenceSpaceChangePending create()
Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated withBufferUtils.
-
create
public static XrEventDataReferenceSpaceChangePending create(long address)
Returns a newXrEventDataReferenceSpaceChangePendinginstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataReferenceSpaceChangePending createSafe(long address)
-
create
public static XrEventDataReferenceSpaceChangePending create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataReferenceSpaceChangePending.
-
malloc
public static XrEventDataReferenceSpaceChangePending.Buffer malloc(int capacity)
Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataReferenceSpaceChangePending.Buffer calloc(int capacity)
Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataReferenceSpaceChangePending.Buffer create(int capacity)
Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataReferenceSpaceChangePending.Buffer create(long address, int capacity)
Create aXrEventDataReferenceSpaceChangePending.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataReferenceSpaceChangePending.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataReferenceSpaceChangePending.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataReferenceSpaceChangePending.Buffer.
-
malloc
public static XrEventDataReferenceSpaceChangePending malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataReferenceSpaceChangePending calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataReferenceSpaceChangePendinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataReferenceSpaceChangePending.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataReferenceSpaceChangePending.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataReferenceSpaceChangePending.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsession
public static long nsession(long struct)
Unsafe version ofsession().
-
nreferenceSpaceType
public static int nreferenceSpaceType(long struct)
Unsafe version ofreferenceSpaceType().
-
nchangeTime
public static long nchangeTime(long struct)
Unsafe version ofchangeTime().
-
nposeValid
public static int nposeValid(long struct)
Unsafe version ofposeValid().
-
nposeInPreviousSpace
public static XrPosef nposeInPreviousSpace(long struct)
Unsafe version ofposeInPreviousSpace().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nreferenceSpaceType
public static void nreferenceSpaceType(long struct, int value)Unsafe version ofreferenceSpaceType.
-
nchangeTime
public static void nchangeTime(long struct, long value)Unsafe version ofchangeTime.
-
nposeValid
public static void nposeValid(long struct, int value)Unsafe version ofposeValid.
-
nposeInPreviousSpace
public static void nposeInPreviousSpace(long struct, XrPosef value)Unsafe version ofposeInPreviousSpace.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-