Package org.lwjgl.ovr
Class OVRCameraExtrinsics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRCameraExtrinsics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRCameraExtrinsics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct ovrCameraExtrinsics { doubleLastChangedTimeSeconds(); unsigned intCameraStatusFlags(); ovrTrackedDeviceTypeAttachedToDevice();ovrPosefRelativePose(); doubleLastExposureTimeSeconds(); doubleExposureLatencySeconds(); doubleAdditionalLatencySeconds(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRCameraExtrinsics.BufferAn array ofOVRCameraExtrinsicsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intADDITIONALLATENCYSECONDSThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intATTACHEDTODEVICE
CAMERASTATUSFLAGS
EXPOSURELATENCYSECONDS
LASTCHANGEDTIMESECONDS
LASTEXPOSURETIMESECONDS
RELATIVEPOSEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRCameraExtrinsics(java.nio.ByteBuffer container)Creates aOVRCameraExtrinsicsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubleAdditionalLatencySeconds()additional latency to get from the exposure time of the real camera to match the render time of the virtual cameraOVRCameraExtrinsicsAdditionalLatencySeconds(double value)Sets the specified value to theAdditionalLatencySeconds()field.intAttachedToDevice()which Tracked device, if any, is the camera rigidly attached to.OVRCameraExtrinsicsAttachedToDevice(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 OVRCameraExtrinsicscallocStack()Deprecated.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.intCameraStatusFlags()current Status of the camera, a mix of bits fromovrCameraStatusFlagsOVRCameraExtrinsicsCameraStatusFlags(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 OVRCameraExtrinsicscreateSafe(long address)static OVRCameraExtrinsics.BuffercreateSafe(long address, int capacity)doubleExposureLatencySeconds()estimated exposure latency to get from the exposure time to the systemOVRCameraExtrinsicsExposureLatencySeconds(double value)Sets the specified value to theExposureLatencySeconds()field.doubleLastChangedTimeSeconds()time in seconds from last change to the parameters.OVRCameraExtrinsicsLastChangedTimeSeconds(double value)Sets the specified value to theLastChangedTimeSeconds()field.doubleLastExposureTimeSeconds()the time, in seconds, when the last successful exposure was takenOVRCameraExtrinsicsLastExposureTimeSeconds(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 OVRCameraExtrinsicsmallocStack()Deprecated.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.OVRPosefRelativePose()the relative Pose of the External Camera.OVRCameraExtrinsicsRelativePose(java.util.function.Consumer<OVRPosef> consumer)Passes theRelativePose()field to the specifiedConsumer.OVRCameraExtrinsicsRelativePose(OVRPosef value)Copies the specifiedOVRPosefto theRelativePose()field.OVRCameraExtrinsicsset(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds)Initializes this struct with the specified values.OVRCameraExtrinsicsset(OVRCameraExtrinsics src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
OVRCameraExtrinsics
public OVRCameraExtrinsics(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public OVRPosef 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
public OVRCameraExtrinsics LastChangedTimeSeconds(double value)
Sets the specified value to theLastChangedTimeSeconds()field.
-
CameraStatusFlags
public OVRCameraExtrinsics CameraStatusFlags(int value)
Sets the specified value to theCameraStatusFlags()field.
-
AttachedToDevice
public OVRCameraExtrinsics AttachedToDevice(int value)
Sets the specified value to theAttachedToDevice()field.
-
RelativePose
public OVRCameraExtrinsics RelativePose(OVRPosef value)
Copies the specifiedOVRPosefto theRelativePose()field.
-
RelativePose
public OVRCameraExtrinsics RelativePose(java.util.function.Consumer<OVRPosef> consumer)
Passes theRelativePose()field to the specifiedConsumer.
-
LastExposureTimeSeconds
public OVRCameraExtrinsics LastExposureTimeSeconds(double value)
Sets the specified value to theLastExposureTimeSeconds()field.
-
ExposureLatencySeconds
public OVRCameraExtrinsics ExposureLatencySeconds(double value)
Sets the specified value to theExposureLatencySeconds()field.
-
AdditionalLatencySeconds
public OVRCameraExtrinsics AdditionalLatencySeconds(double value)
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
public OVRCameraExtrinsics set(OVRCameraExtrinsics src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRCameraExtrinsics malloc()
Returns a newOVRCameraExtrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRCameraExtrinsics calloc()
Returns a newOVRCameraExtrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRCameraExtrinsics create()
Returns a newOVRCameraExtrinsicsinstance allocated withBufferUtils.
-
create
public static OVRCameraExtrinsics create(long address)
Returns a newOVRCameraExtrinsicsinstance for the specified memory address.
-
createSafe
@Nullable public static OVRCameraExtrinsics createSafe(long address)
-
malloc
public static OVRCameraExtrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRCameraExtrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(long address, int capacity)
Create aOVRCameraExtrinsics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRCameraExtrinsics.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRCameraExtrinsics mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraExtrinsics callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRCameraExtrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraExtrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRCameraExtrinsics.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraExtrinsics.Buffer callocStack(int capacity)
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
public static OVRCameraExtrinsics malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRCameraExtrinsics calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRCameraExtrinsics.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRCameraExtrinsics.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
public static OVRPosef nRelativePose(long struct)
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
public static void nRelativePose(long struct, OVRPosef value)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.
-
-