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;
XrPosef relativePose;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrExternalCameraExtrinsicsOCULUSstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.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 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 TypeMethodDescriptionintattachedToDevice(int value) Sets the specified value to theattachedToDevicefield.calloc()Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcameraStatusFlags(long value) Sets the specified value to thecameraStatusFlagsfield.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) longlastChangeTime(long value) Sets the specified value to thelastChangeTimefield.malloc()Returns a newXrExternalCameraExtrinsicsOCULUSinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.malloc(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.relativePose(Consumer<XrPosef> consumer) Passes therelativePosefield to the specifiedConsumer.relativePose(XrPosef value) Copies the specifiedXrPosefto therelativePosefield.Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrExternalCameraExtrinsicsOCULUS>
-
lastChangeTime
public long lastChangeTime()- Returns:
- the value of the
lastChangeTimefield.
-
cameraStatusFlags
public long cameraStatusFlags()- Returns:
- the value of the
cameraStatusFlagsfield.
-
attachedToDevice
public int attachedToDevice()- Returns:
- the value of the
attachedToDevicefield.
-
relativePose
- Returns:
- a
XrPosefview of therelativePosefield.
-
lastChangeTime
Sets the specified value to thelastChangeTimefield. -
cameraStatusFlags
Sets the specified value to thecameraStatusFlagsfield. -
attachedToDevice
Sets the specified value to theattachedToDevicefield. -
relativePose
Copies the specifiedXrPosefto therelativePosefield. -
relativePose
Passes therelativePosefield 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
Returns a newXrExternalCameraExtrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
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.
-