Class XrSceneSubmeshStateANDROID
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrSceneSubmeshStateANDROID
extends Struct<XrSceneSubmeshStateANDROID>
implements NativeResource
struct XrSceneSubmeshStateANDROID {
XrStructureType type;
void * next;
XrUuid submeshId;
XrTime lastUpdatedTime;
XrPosef submeshPoseInBaseSpace;
XrExtent3Df bounds;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneSubmeshStateANDROID(ByteBuffer container) Creates aXrSceneSubmeshStateANDROIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbounds()bounds(Consumer<XrExtent3Df> consumer) Passes theboundsfield to the specifiedConsumer.bounds(XrExtent3Df value) Copies the specifiedXrExtent3Dfto theboundsfield.static XrSceneSubmeshStateANDROIDcalloc()Returns a newXrSceneSubmeshStateANDROIDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneSubmeshStateANDROIDcalloc(MemoryStack stack) Returns a newXrSceneSubmeshStateANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneSubmeshStateANDROIDcreate()Returns a newXrSceneSubmeshStateANDROIDinstance allocated withBufferUtils.create(int capacity) Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withBufferUtils.static XrSceneSubmeshStateANDROIDcreate(long address) Returns a newXrSceneSubmeshStateANDROIDinstance for the specified memory address.create(long address, int capacity) Create aXrSceneSubmeshStateANDROID.Bufferinstance at the specified memory.static @Nullable XrSceneSubmeshStateANDROIDcreateSafe(long address) static @Nullable XrSceneSubmeshStateANDROID.BuffercreateSafe(long address, int capacity) longlastUpdatedTime(long value) Sets the specified value to thelastUpdatedTimefield.static XrSceneSubmeshStateANDROIDmalloc()Returns a newXrSceneSubmeshStateANDROIDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneSubmeshStateANDROIDmalloc(MemoryStack stack) Returns a newXrSceneSubmeshStateANDROIDinstance allocated on the specifiedMemoryStack.static XrExtent3Dfnbounds(long struct) Unsafe version ofbounds().static voidnbounds(long struct, XrExtent3Df value) Unsafe version ofbounds.longnext()next(long value) Sets the specified value to thenextfield.static longnlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime().static voidnlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static XrUuidnsubmeshId(long struct) Unsafe version ofsubmeshId().static voidnsubmeshId(long struct, XrUuid value) Unsafe version ofsubmeshId.static XrPosefnsubmeshPoseInBaseSpace(long struct) Unsafe version ofsubmeshPoseInBaseSpace().static voidnsubmeshPoseInBaseSpace(long struct, XrPosef value) Unsafe version ofsubmeshPoseInBaseSpace.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, XrUuid submeshId, long lastUpdatedTime, XrPosef submeshPoseInBaseSpace, XrExtent3Df bounds) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Passes thesubmeshIdfield to the specifiedConsumer.Copies the specifiedXrUuidto thesubmeshIdfield.submeshPoseInBaseSpace(Consumer<XrPosef> consumer) Passes thesubmeshPoseInBaseSpacefield to the specifiedConsumer.submeshPoseInBaseSpace(XrPosef value) Copies the specifiedXrPosefto thesubmeshPoseInBaseSpacefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SCENE_SUBMESH_STATE_ANDROIDvalue to thetypefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
SUBMESHID
public static final int SUBMESHIDThe struct member offsets. -
LASTUPDATEDTIME
public static final int LASTUPDATEDTIMEThe struct member offsets. -
SUBMESHPOSEINBASESPACE
public static final int SUBMESHPOSEINBASESPACEThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets.
-
-
Constructor Details
-
XrSceneSubmeshStateANDROID
Creates aXrSceneSubmeshStateANDROIDinstance 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<XrSceneSubmeshStateANDROID>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
submeshId
-
lastUpdatedTime
- Returns:
- the value of the
lastUpdatedTimefield.
-
submeshPoseInBaseSpace
-
bounds
- Returns:
- a
XrExtent3Dfview of theboundsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SCENE_SUBMESH_STATE_ANDROIDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
submeshId
Copies the specifiedXrUuidto thesubmeshIdfield. -
submeshId
Passes thesubmeshIdfield to the specifiedConsumer. -
lastUpdatedTime
Sets the specified value to thelastUpdatedTimefield. -
submeshPoseInBaseSpace
Copies the specifiedXrPosefto thesubmeshPoseInBaseSpacefield. -
submeshPoseInBaseSpace
Passes thesubmeshPoseInBaseSpacefield to the specifiedConsumer. -
bounds
Copies the specifiedXrExtent3Dfto theboundsfield. -
bounds
Passes theboundsfield to the specifiedConsumer. -
set
public XrSceneSubmeshStateANDROID set(int type, long next, XrUuid submeshId, long lastUpdatedTime, XrPosef submeshPoseInBaseSpace, XrExtent3Df bounds) 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 newXrSceneSubmeshStateANDROIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneSubmeshStateANDROIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneSubmeshStateANDROIDinstance allocated withBufferUtils. -
create
Returns a newXrSceneSubmeshStateANDROIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneSubmeshStateANDROID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneSubmeshStateANDROIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneSubmeshStateANDROIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSceneSubmeshStateANDROID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSceneSubmeshStateANDROID.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(). -
nsubmeshId
Unsafe version ofsubmeshId(). -
nlastUpdatedTime
public static long nlastUpdatedTime(long struct) Unsafe version oflastUpdatedTime(). -
nsubmeshPoseInBaseSpace
Unsafe version ofsubmeshPoseInBaseSpace(). -
nbounds
Unsafe version ofbounds(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nsubmeshId
-
nlastUpdatedTime
public static void nlastUpdatedTime(long struct, long value) Unsafe version oflastUpdatedTime. -
nsubmeshPoseInBaseSpace
Unsafe version ofsubmeshPoseInBaseSpace. -
nbounds
Unsafe version ofbounds.
-