Package org.lwjgl.openxr
Class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCreation info for creating a spatial anchor handle from a persisted anchor.Description
The
nameis a character array of maximum sizeMAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT, which must include a null terminator and must not be empty (i.e. the first element is the null terminator). If an emptynamevalue is passed to any function as a parameter, that function must returnERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT.Valid Usage (Implicit)
- The
XR_MSFT_spatial_anchor_persistenceextension must be enabled prior to usingXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT typemust beTYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainspatialAnchorStoremust be a validXrSpatialAnchorStoreConnectionMSFThandlespatialAnchorPersistenceNamemust be a validXrSpatialAnchorPersistenceNameMSFTstructure
See Also
XrSpatialAnchorPersistenceNameMSFT,CreateSpatialAnchorFromPersistedNameMSFTLayout
struct XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT { XrStructureTypetype(); void const *next(); XrSpatialAnchorStoreConnectionMSFTspatialAnchorStore();XrSpatialAnchorPersistenceNameMSFTspatialAnchorPersistenceName(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.BufferAn array ofXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPATIALANCHORPERSISTENCENAME
SPATIALANCHORSTORE
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(java.nio.ByteBuffer container)Creates aXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTcalloc()Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withmemCalloc.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffercalloc(int capacity)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTcreate()Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withBufferUtils.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffercreate(int capacity)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTcreate(long address)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance for the specified memory address.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffercreate(long address, int capacity)Create aXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance at the specified memory.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTcreateSafe(long address)static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTmalloc()Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withmemAlloc.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffermalloc(int capacity)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTnext(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 XrSpatialAnchorPersistenceNameMSFTnspatialAnchorPersistenceName(long struct)Unsafe version ofspatialAnchorPersistenceName().static voidnspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value)Unsafe version ofspatialAnchorPersistenceName.static longnspatialAnchorStore(long struct)Unsafe version ofspatialAnchorStore().static voidnspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value)Unsafe version ofspatialAnchorStore.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTset(int type, long next, XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName)Initializes this struct with the specified values.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTset(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()XrSpatialAnchorPersistenceNameMSFTspatialAnchorPersistenceName()theXrSpatialAnchorPersistenceNameMSFTassociated with theXrSpatialAnchorMSFTin the spatial anchor store.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTspatialAnchorPersistenceName(java.util.function.Consumer<XrSpatialAnchorPersistenceNameMSFT> consumer)Passes thespatialAnchorPersistenceName()field to the specifiedConsumer.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTspatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value)Copies the specifiedXrSpatialAnchorPersistenceNameMSFTto thespatialAnchorPersistenceName()field.longspatialAnchorStore()theXrSpatialAnchorStoreConnectionMSFTfrom which the spatial anchor will be loaded from.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTspatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value)Sets the specified value to thespatialAnchorStore()field.inttype()theXrStructureTypeof this structure.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSpatialAnchorFromPersistedAnchorCreateInfoMSFTtype$Default()Sets theTYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFTvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance 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.
-
spatialAnchorStore
public long spatialAnchorStore()
theXrSpatialAnchorStoreConnectionMSFTfrom which the spatial anchor will be loaded from.
-
spatialAnchorPersistenceName
public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName()
theXrSpatialAnchorPersistenceNameMSFTassociated with theXrSpatialAnchorMSFTin the spatial anchor store. This name is used to create anXrSpatialAnchorMSFThandle from a spatial anchor persisted in the spatial anchor store.
-
type
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type$Default()
Sets theTYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFTvalue to thetype()field.
-
next
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
spatialAnchorStore
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value)
Sets the specified value to thespatialAnchorStore()field.
-
spatialAnchorPersistenceName
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value)
Copies the specifiedXrSpatialAnchorPersistenceNameMSFTto thespatialAnchorPersistenceName()field.
-
spatialAnchorPersistenceName
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(java.util.function.Consumer<XrSpatialAnchorPersistenceNameMSFT> consumer)
Passes thespatialAnchorPersistenceName()field to the specifiedConsumer.
-
set
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT set(int type, long next, XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName)
Initializes this struct with the specified values.
-
set
public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT set(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT malloc()
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT calloc()
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT create()
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT create(long address)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT createSafe(long address)
-
malloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer create(int capacity)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer create(long address, int capacity)
Create aXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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().
-
nspatialAnchorStore
public static long nspatialAnchorStore(long struct)
Unsafe version ofspatialAnchorStore().
-
nspatialAnchorPersistenceName
public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct)
Unsafe version ofspatialAnchorPersistenceName().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nspatialAnchorStore
public static void nspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value)Unsafe version ofspatialAnchorStore.
-
nspatialAnchorPersistenceName
public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value)Unsafe version ofspatialAnchorPersistenceName.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-