Package org.lwjgl.ovr
Class OVRCameraExtrinsics
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRCameraExtrinsics>
org.lwjgl.ovr.OVRCameraExtrinsics
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRCameraExtrinsics
extends org.lwjgl.system.Struct<OVRCameraExtrinsics>
implements org.lwjgl.system.NativeResource
Layout
struct ovrCameraExtrinsics {
double LastChangedTimeSeconds();
unsigned int CameraStatusFlags();
ovrTrackedDeviceType AttachedToDevice();
ovrPosef RelativePose();
double LastExposureTimeSeconds();
double ExposureLatencySeconds();
double AdditionalLatencySeconds();
}-
Nested Class Summary
Nested ClassesNested 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 member offsets.static 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 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
ConstructorsConstructorDescriptionOVRCameraExtrinsics(ByteBuffer container) Creates aOVRCameraExtrinsicsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptiondoubleadditional latency to get from the exposure time of the real camera to match the render time of the virtual cameraAdditionalLatencySeconds(double value) Sets the specified value to theAdditionalLatencySeconds()field.intwhich Tracked device, if any, is the camera rigidly attached to.AttachedToDevice(int value) Sets the specified value to theAttachedToDevice()field.static OVRCameraExtrinsicscalloc()Returns a newOVRCameraExtrinsicsinstance allocated withmemCalloc.static OVRCameraExtrinsics.Buffercalloc(int capacity) Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemCalloc.static OVRCameraExtrinsics.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraExtrinsicscalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraExtrinsicsDeprecated.static OVRCameraExtrinsics.BuffercallocStack(int capacity) Deprecated.static OVRCameraExtrinsics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRCameraExtrinsicscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intcurrent Status of the camera, a mix of bits fromovrCameraStatusFlagsCameraStatusFlags(int value) Sets the specified value to theCameraStatusFlags()field.static OVRCameraExtrinsicscreate()Returns a newOVRCameraExtrinsicsinstance allocated withBufferUtils.static OVRCameraExtrinsics.Buffercreate(int capacity) Returns a newOVRCameraExtrinsics.Bufferinstance allocated withBufferUtils.static OVRCameraExtrinsicscreate(long address) Returns a newOVRCameraExtrinsicsinstance for the specified memory address.static OVRCameraExtrinsics.Buffercreate(long address, int capacity) Create aOVRCameraExtrinsics.Bufferinstance at the specified memory.static @Nullable OVRCameraExtrinsicscreateSafe(long address) static @Nullable OVRCameraExtrinsics.BuffercreateSafe(long address, int capacity) doubleestimated exposure latency to get from the exposure time to the systemExposureLatencySeconds(double value) Sets the specified value to theExposureLatencySeconds()field.doubletime in seconds from last change to the parameters.LastChangedTimeSeconds(double value) Sets the specified value to theLastChangedTimeSeconds()field.doublethe time, in seconds, when the last successful exposure was takenLastExposureTimeSeconds(double value) Sets the specified value to theLastExposureTimeSeconds()field.static OVRCameraExtrinsicsmalloc()Returns a newOVRCameraExtrinsicsinstance allocated withmemAlloc.static OVRCameraExtrinsics.Buffermalloc(int capacity) Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemAlloc.static OVRCameraExtrinsics.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStack.static OVRCameraExtrinsicsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStack.static OVRCameraExtrinsicsDeprecated.static OVRCameraExtrinsics.BuffermallocStack(int capacity) Deprecated.static OVRCameraExtrinsics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRCameraExtrinsicsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static doublenAdditionalLatencySeconds(long struct) Unsafe version ofAdditionalLatencySeconds().static voidnAdditionalLatencySeconds(long struct, double value) Unsafe version ofAdditionalLatencySeconds.static intnAttachedToDevice(long struct) Unsafe version ofAttachedToDevice().static voidnAttachedToDevice(long struct, int value) Unsafe version ofAttachedToDevice.static intnCameraStatusFlags(long struct) Unsafe version ofCameraStatusFlags().static voidnCameraStatusFlags(long struct, int value) Unsafe version ofCameraStatusFlags.static doublenExposureLatencySeconds(long struct) Unsafe version ofExposureLatencySeconds().static voidnExposureLatencySeconds(long struct, double value) Unsafe version ofExposureLatencySeconds.static doublenLastChangedTimeSeconds(long struct) Unsafe version ofLastChangedTimeSeconds().static voidnLastChangedTimeSeconds(long struct, double value) Unsafe version ofLastChangedTimeSeconds.static doublenLastExposureTimeSeconds(long struct) Unsafe version ofLastExposureTimeSeconds().static voidnLastExposureTimeSeconds(long struct, double value) Unsafe version ofLastExposureTimeSeconds.static OVRPosefnRelativePose(long struct) Unsafe version ofRelativePose().static voidnRelativePose(long struct, OVRPosef value) Unsafe version ofRelativePose.the relative Pose of the External Camera.RelativePose(Consumer<OVRPosef> consumer) Passes theRelativePose()field to the specifiedConsumer.RelativePose(OVRPosef value) Copies the specifiedOVRPosefto theRelativePose()field.set(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds) Initializes this struct with the specified values.set(OVRCameraExtrinsics src) 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. -
LASTCHANGEDTIMESECONDS
public static final int LASTCHANGEDTIMESECONDSThe 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. -
LASTEXPOSURETIMESECONDS
public static final int LASTEXPOSURETIMESECONDSThe struct member offsets. -
EXPOSURELATENCYSECONDS
public static final int EXPOSURELATENCYSECONDSThe struct member offsets. -
ADDITIONALLATENCYSECONDS
public static final int ADDITIONALLATENCYSECONDSThe struct member offsets.
-
-
Constructor Details
-
OVRCameraExtrinsics
Creates aOVRCameraExtrinsicsinstance 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<OVRCameraExtrinsics>
-
LastChangedTimeSeconds
public double LastChangedTimeSeconds()time in seconds from last change to the parameters. For instance, if the pose changes, or a camera exposure happens, this struct will be updated. -
CameraStatusFlags
public int CameraStatusFlags()current Status of the camera, a mix of bits fromovrCameraStatusFlags -
AttachedToDevice
public int AttachedToDevice()which Tracked device, if any, is the camera rigidly attached to. If set toTrackedDevice_None, then the camera is not attached to a tracked object. If the external camera moves while unattached (i.e. set toovrTrackedDevice_None), itsPosewon't be updated. -
RelativePose
the relative Pose of the External Camera. IfAttachedToDeviceisTrackedDevice_None, then this is a absolute pose in tracking space. -
LastExposureTimeSeconds
public double LastExposureTimeSeconds()the time, in seconds, when the last successful exposure was taken -
ExposureLatencySeconds
public double ExposureLatencySeconds()estimated exposure latency to get from the exposure time to the system -
AdditionalLatencySeconds
public double AdditionalLatencySeconds()additional latency to get from the exposure time of the real camera to match the render time of the virtual camera -
LastChangedTimeSeconds
Sets the specified value to theLastChangedTimeSeconds()field. -
CameraStatusFlags
Sets the specified value to theCameraStatusFlags()field. -
AttachedToDevice
Sets the specified value to theAttachedToDevice()field. -
RelativePose
Copies the specifiedOVRPosefto theRelativePose()field. -
RelativePose
Passes theRelativePose()field to the specifiedConsumer. -
LastExposureTimeSeconds
Sets the specified value to theLastExposureTimeSeconds()field. -
ExposureLatencySeconds
Sets the specified value to theExposureLatencySeconds()field. -
AdditionalLatencySeconds
Sets the specified value to theAdditionalLatencySeconds()field. -
set
public OVRCameraExtrinsics set(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds) 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 newOVRCameraExtrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRCameraExtrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRCameraExtrinsicsinstance allocated withBufferUtils. -
create
Returns a newOVRCameraExtrinsicsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRCameraExtrinsics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static OVRCameraExtrinsics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRCameraExtrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nLastChangedTimeSeconds
public static double nLastChangedTimeSeconds(long struct) Unsafe version ofLastChangedTimeSeconds(). -
nCameraStatusFlags
public static int nCameraStatusFlags(long struct) Unsafe version ofCameraStatusFlags(). -
nAttachedToDevice
public static int nAttachedToDevice(long struct) Unsafe version ofAttachedToDevice(). -
nRelativePose
Unsafe version ofRelativePose(). -
nLastExposureTimeSeconds
public static double nLastExposureTimeSeconds(long struct) Unsafe version ofLastExposureTimeSeconds(). -
nExposureLatencySeconds
public static double nExposureLatencySeconds(long struct) Unsafe version ofExposureLatencySeconds(). -
nAdditionalLatencySeconds
public static double nAdditionalLatencySeconds(long struct) Unsafe version ofAdditionalLatencySeconds(). -
nLastChangedTimeSeconds
public static void nLastChangedTimeSeconds(long struct, double value) Unsafe version ofLastChangedTimeSeconds. -
nCameraStatusFlags
public static void nCameraStatusFlags(long struct, int value) Unsafe version ofCameraStatusFlags. -
nAttachedToDevice
public static void nAttachedToDevice(long struct, int value) Unsafe version ofAttachedToDevice. -
nRelativePose
Unsafe version ofRelativePose. -
nLastExposureTimeSeconds
public static void nLastExposureTimeSeconds(long struct, double value) Unsafe version ofLastExposureTimeSeconds. -
nExposureLatencySeconds
public static void nExposureLatencySeconds(long struct, double value) Unsafe version ofExposureLatencySeconds. -
nAdditionalLatencySeconds
public static void nAdditionalLatencySeconds(long struct, double value) Unsafe version ofAdditionalLatencySeconds.
-