Package org.lwjgl.openxr
Class XrExternalCameraExtrinsicsOCULUS
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrExternalCameraExtrinsicsOCULUS>
org.lwjgl.openxr.XrExternalCameraExtrinsicsOCULUS
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class XrExternalCameraExtrinsicsOCULUS
extends Struct<XrExternalCameraExtrinsicsOCULUS>
implements NativeResource
struct XrExternalCameraExtrinsicsOCULUS {
XrTime lastChangeTime;
XrExternalCameraStatusFlagsOCULUS cameraStatusFlags;
XrExternalCameraAttachedToDeviceOCULUS attachedToDevice;
{@link XrPosef XrPosef} relativePose;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofXrExternalCameraExtrinsicsOCULUS
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrExternalCameraExtrinsicsOCULUS
(ByteBuffer container) Creates aXrExternalCameraExtrinsicsOCULUS
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
attachedToDevice
(int value) Sets the specified value to theattachedToDevice
field.calloc()
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
cameraStatusFlags
(long value) Sets the specified value to thecameraStatusFlags
field.create()
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newXrExternalCameraExtrinsicsOCULUS
instance for the specified memory address.create
(long address, int capacity) Create aXrExternalCameraExtrinsicsOCULUS.Buffer
instance at the specified memory.static @Nullable XrExternalCameraExtrinsicsOCULUS
createSafe
(long address) static @Nullable XrExternalCameraExtrinsicsOCULUS.Buffer
createSafe
(long address, int capacity) long
lastChangeTime
(long value) Sets the specified value to thelastChangeTime
field.malloc()
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated on the specifiedMemoryStack
.static int
nattachedToDevice
(long struct) Unsafe version ofattachedToDevice()
.static void
nattachedToDevice
(long struct, int value) Unsafe version ofattachedToDevice
.static long
ncameraStatusFlags
(long struct) Unsafe version ofcameraStatusFlags()
.static void
ncameraStatusFlags
(long struct, long value) Unsafe version ofcameraStatusFlags
.static long
nlastChangeTime
(long struct) Unsafe version oflastChangeTime()
.static void
nlastChangeTime
(long struct, long value) Unsafe version oflastChangeTime
.static XrPosef
nrelativePose
(long struct) Unsafe version ofrelativePose()
.static void
nrelativePose
(long struct, XrPosef value) Unsafe version ofrelativePose
.relativePose
(Consumer<XrPosef> consumer) Passes therelativePose
field to the specifiedConsumer
.relativePose
(XrPosef value) Copies the specifiedXrPosef
to therelativePose
field.Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
LASTCHANGETIME
public static final int LASTCHANGETIMEThe struct member offsets. -
CAMERASTATUSFLAGS
public static final int CAMERASTATUSFLAGSThe struct member offsets. -
ATTACHEDTODEVICE
public static final int ATTACHEDTODEVICEThe struct member offsets. -
RELATIVEPOSE
public static final int RELATIVEPOSEThe struct member offsets.
-
-
Constructor Details
-
XrExternalCameraExtrinsicsOCULUS
Creates aXrExternalCameraExtrinsicsOCULUS
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrExternalCameraExtrinsicsOCULUS>
-
lastChangeTime
public long lastChangeTime()- Returns:
- the value of the
lastChangeTime
field.
-
cameraStatusFlags
public long cameraStatusFlags()- Returns:
- the value of the
cameraStatusFlags
field.
-
attachedToDevice
public int attachedToDevice()- Returns:
- the value of the
attachedToDevice
field.
-
relativePose
- Returns:
- a
XrPosef
view of therelativePose
field.
-
lastChangeTime
Sets the specified value to thelastChangeTime
field. -
cameraStatusFlags
Sets the specified value to thecameraStatusFlags
field. -
attachedToDevice
Sets the specified value to theattachedToDevice
field. -
relativePose
Copies the specifiedXrPosef
to therelativePose
field. -
relativePose
Passes therelativePose
field to the specifiedConsumer
. -
set
public XrExternalCameraExtrinsicsOCULUS set(long lastChangeTime, long cameraStatusFlags, int attachedToDevice, XrPosef relativePose) 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 newXrExternalCameraExtrinsicsOCULUS
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated withBufferUtils
. -
create
Returns a newXrExternalCameraExtrinsicsOCULUS
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrExternalCameraExtrinsicsOCULUS.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable XrExternalCameraExtrinsicsOCULUS.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraExtrinsicsOCULUS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlastChangeTime
public static long nlastChangeTime(long struct) Unsafe version oflastChangeTime()
. -
ncameraStatusFlags
public static long ncameraStatusFlags(long struct) Unsafe version ofcameraStatusFlags()
. -
nattachedToDevice
public static int nattachedToDevice(long struct) Unsafe version ofattachedToDevice()
. -
nrelativePose
Unsafe version ofrelativePose()
. -
nlastChangeTime
public static void nlastChangeTime(long struct, long value) Unsafe version oflastChangeTime
. -
ncameraStatusFlags
public static void ncameraStatusFlags(long struct, long value) Unsafe version ofcameraStatusFlags
. -
nattachedToDevice
public static void nattachedToDevice(long struct, int value) Unsafe version ofattachedToDevice
. -
nrelativePose
Unsafe version ofrelativePose
.
-