Package org.lwjgl.ovr
Class OVRCameraExtrinsics
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct ovrCameraExtrinsics {
double LastChangedTimeSeconds()
;
unsigned int CameraStatusFlags()
;
ovrTrackedDeviceType AttachedToDevice()
;
ovrPosef
RelativePose()
;
double LastExposureTimeSeconds()
;
double ExposureLatencySeconds()
;
double AdditionalLatencySeconds()
;
}
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static 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 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
ConstructorDescriptionOVRCameraExtrinsics
(ByteBuffer container) Creates aOVRCameraExtrinsics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptiondouble
additional 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.int
which Tracked device, if any, is the camera rigidly attached to.AttachedToDevice
(int value) Sets the specified value to theAttachedToDevice()
field.static OVRCameraExtrinsics
calloc()
Returns a newOVRCameraExtrinsics
instance allocated withmemCalloc
.static OVRCameraExtrinsics.Buffer
calloc
(int capacity) Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemCalloc
.static OVRCameraExtrinsics.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRCameraExtrinsics
calloc
(MemoryStack stack) Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRCameraExtrinsics
Deprecated.static OVRCameraExtrinsics.Buffer
callocStack
(int capacity) Deprecated.static OVRCameraExtrinsics.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRCameraExtrinsics
callocStack
(MemoryStack stack) Deprecated.int
current Status of the camera, a mix of bits fromovrCameraStatusFlags
CameraStatusFlags
(int value) Sets the specified value to theCameraStatusFlags()
field.static OVRCameraExtrinsics
create()
Returns a newOVRCameraExtrinsics
instance allocated withBufferUtils
.static OVRCameraExtrinsics.Buffer
create
(int capacity) Returns a newOVRCameraExtrinsics.Buffer
instance allocated withBufferUtils
.static OVRCameraExtrinsics
create
(long address) Returns a newOVRCameraExtrinsics
instance for the specified memory address.static OVRCameraExtrinsics.Buffer
create
(long address, int capacity) Create aOVRCameraExtrinsics.Buffer
instance at the specified memory.static OVRCameraExtrinsics
createSafe
(long address) static OVRCameraExtrinsics.Buffer
createSafe
(long address, int capacity) double
estimated exposure latency to get from the exposure time to the systemExposureLatencySeconds
(double value) Sets the specified value to theExposureLatencySeconds()
field.double
time in seconds from last change to the parameters.LastChangedTimeSeconds
(double value) Sets the specified value to theLastChangedTimeSeconds()
field.double
the time, in seconds, when the last successful exposure was takenLastExposureTimeSeconds
(double value) Sets the specified value to theLastExposureTimeSeconds()
field.static OVRCameraExtrinsics
malloc()
Returns a newOVRCameraExtrinsics
instance allocated withmemAlloc
.static OVRCameraExtrinsics.Buffer
malloc
(int capacity) Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemAlloc
.static OVRCameraExtrinsics.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
.static OVRCameraExtrinsics
malloc
(MemoryStack stack) Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
.static OVRCameraExtrinsics
Deprecated.static OVRCameraExtrinsics.Buffer
mallocStack
(int capacity) Deprecated.static OVRCameraExtrinsics.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRCameraExtrinsics
mallocStack
(MemoryStack stack) Deprecated.static double
nAdditionalLatencySeconds
(long struct) Unsafe version ofAdditionalLatencySeconds()
.static void
nAdditionalLatencySeconds
(long struct, double value) Unsafe version ofAdditionalLatencySeconds
.static int
nAttachedToDevice
(long struct) Unsafe version ofAttachedToDevice()
.static void
nAttachedToDevice
(long struct, int value) Unsafe version ofAttachedToDevice
.static int
nCameraStatusFlags
(long struct) Unsafe version ofCameraStatusFlags()
.static void
nCameraStatusFlags
(long struct, int value) Unsafe version ofCameraStatusFlags
.static double
nExposureLatencySeconds
(long struct) Unsafe version ofExposureLatencySeconds()
.static void
nExposureLatencySeconds
(long struct, double value) Unsafe version ofExposureLatencySeconds
.static double
nLastChangedTimeSeconds
(long struct) Unsafe version ofLastChangedTimeSeconds()
.static void
nLastChangedTimeSeconds
(long struct, double value) Unsafe version ofLastChangedTimeSeconds
.static double
nLastExposureTimeSeconds
(long struct) Unsafe version ofLastExposureTimeSeconds()
.static void
nLastExposureTimeSeconds
(long struct, double value) Unsafe version ofLastExposureTimeSeconds
.static OVRPosef
nRelativePose
(long struct) Unsafe version ofRelativePose()
.static void
nRelativePose
(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 specifiedOVRPosef
to 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.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. -
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 aOVRCameraExtrinsics
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<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
), itsPose
won't be updated. -
RelativePose
the relative Pose of the External Camera. IfAttachedToDevice
isTrackedDevice_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 specifiedOVRPosef
to 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 newOVRCameraExtrinsics
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRCameraExtrinsics
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRCameraExtrinsics
instance allocated withBufferUtils
. -
create
Returns a newOVRCameraExtrinsics
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRCameraExtrinsics.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-