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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrExternalCameraExtrinsicsOCULUS
extends org.lwjgl.system.Struct<XrExternalCameraExtrinsicsOCULUS>
implements org.lwjgl.system.NativeResource
Camera extrinsics state.
Valid Usage (Implicit)
- The
XR_OCULUS_external_cameraextension must be enabled prior to usingXrExternalCameraExtrinsicsOCULUS cameraStatusFlagsmust be 0 or a valid combination ofXrExternalCameraStatusFlagBitsOCULUSvaluesattachedToDevicemust be a validXrExternalCameraAttachedToDeviceOCULUSvalue
See Also
XrExternalCameraOCULUS, XrPosef
Layout
struct XrExternalCameraExtrinsicsOCULUS {
XrTime lastChangeTime();
XrExternalCameraStatusFlagsOCULUS cameraStatusFlags();
XrExternalCameraAttachedToDeviceOCULUS attachedToDevice();
XrPosef relativePose();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrExternalCameraExtrinsicsOCULUSstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 member offsets.static final intThe 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 aXrExternalCameraExtrinsicsOCULUSinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioninttheXrExternalCameraAttachedToDeviceOCULUSfor the device this camera is attached toattachedToDevice(int value) Sets the specified value to theattachedToDevice()field.calloc()Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longtheXrExternalCameraStatusFlagsOCULUSfor this camera’s status.cameraStatusFlags(long value) Sets the specified value to thecameraStatusFlags()field.create()Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withBufferUtils.create(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrExternalCameraExtrinsicsOCULUSinstance for the specified memory address.create(long address, int capacity) Create aXrExternalCameraExtrinsicsOCULUS.Bufferinstance at the specified memory.static @Nullable XrExternalCameraExtrinsicsOCULUScreateSafe(long address) static @Nullable XrExternalCameraExtrinsicsOCULUS.BuffercreateSafe(long address, int capacity) longtheXrTimewhen this camera’s extrinsics last changed.lastChangeTime(long value) Sets the specified value to thelastChangeTime()field.malloc()Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated on the specifiedMemoryStack.static intnattachedToDevice(long struct) Unsafe version ofattachedToDevice().static voidnattachedToDevice(long struct, int value) Unsafe version ofattachedToDevice.static longncameraStatusFlags(long struct) Unsafe version ofcameraStatusFlags().static voidncameraStatusFlags(long struct, long value) Unsafe version ofcameraStatusFlags.static longnlastChangeTime(long struct) Unsafe version oflastChangeTime().static voidnlastChangeTime(long struct, long value) Unsafe version oflastChangeTime.static XrPosefnrelativePose(long struct) Unsafe version ofrelativePose().static voidnrelativePose(long struct, XrPosef value) Unsafe version ofrelativePose.theXrPoseffor offset of the camera from the device that the camera is attached torelativePose(Consumer<XrPosef> consumer) Passes therelativePose()field to the specifiedConsumer.relativePose(XrPosef value) Copies the specifiedXrPosefto therelativePose()field.Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aXrExternalCameraExtrinsicsOCULUSinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrExternalCameraExtrinsicsOCULUS>
-
lastChangeTime
public long lastChangeTime()theXrTimewhen this camera’s extrinsics last changed. -
cameraStatusFlags
public long cameraStatusFlags()theXrExternalCameraStatusFlagsOCULUSfor this camera’s status. -
attachedToDevice
public int attachedToDevice()theXrExternalCameraAttachedToDeviceOCULUSfor the device this camera is attached to -
relativePose
theXrPoseffor offset of the camera from the device that the camera is attached to -
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 specifiedXrPosefto 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 newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withBufferUtils. -
create
Returns a newXrExternalCameraExtrinsicsOCULUSinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrExternalCameraExtrinsicsOCULUS.Bufferinstance 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 newXrExternalCameraExtrinsicsOCULUSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStackand 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.
-