Package org.lwjgl.ovr
Class OVRCameraIntrinsics
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRCameraIntrinsics>
org.lwjgl.ovr.OVRCameraIntrinsics
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRCameraIntrinsics
extends org.lwjgl.system.Struct<OVRCameraIntrinsics>
implements org.lwjgl.system.NativeResource
Layout
struct ovrCameraIntrinsics {
double LastChangedTime();
ovrFovPort FOVPort();
float VirtualNearPlaneDistanceMeters();
float VirtualFarPlaneDistanceMeters();
ovrSizei ImageSensorPixelResolution();
ovrMatrix4f LensDistortionMatrix();
double ExposurePeriodSeconds();
double ExposureDurationSeconds();
}-
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 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.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRCameraIntrinsics(ByteBuffer container) Creates aOVRCameraIntrinsicsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRCameraIntrinsicscalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc.static OVRCameraIntrinsics.Buffercalloc(int capacity) Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc.static OVRCameraIntrinsics.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsicscalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsicsDeprecated.static OVRCameraIntrinsics.BuffercallocStack(int capacity) Deprecated.static OVRCameraIntrinsics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRCameraIntrinsicscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRCameraIntrinsicscreate()Returns a newOVRCameraIntrinsicsinstance allocated withBufferUtils.static OVRCameraIntrinsics.Buffercreate(int capacity) Returns a newOVRCameraIntrinsics.Bufferinstance allocated withBufferUtils.static OVRCameraIntrinsicscreate(long address) Returns a newOVRCameraIntrinsicsinstance for the specified memory address.static OVRCameraIntrinsics.Buffercreate(long address, int capacity) Create aOVRCameraIntrinsics.Bufferinstance at the specified memory.static @Nullable OVRCameraIntrinsicscreateSafe(long address) static @Nullable OVRCameraIntrinsics.BuffercreateSafe(long address, int capacity) doublelength of the exposure timeExposureDurationSeconds(double value) Sets the specified value to theExposureDurationSeconds()field.doublehow often, in seconds, the exposure is takenExposurePeriodSeconds(double value) Sets the specified value to theExposurePeriodSeconds()field.FOVPort()angles of all 4 sides of viewportFOVPort(Consumer<OVRFovPort> consumer) FOVPort(OVRFovPort value) Copies the specifiedOVRFovPortto theFOVPort()field.height in pixels of image sensorImageSensorPixelResolution(Consumer<OVRSizei> consumer) Passes theImageSensorPixelResolution()field to the specifiedConsumer.Copies the specifiedOVRSizeito theImageSensorPixelResolution()field.doubletime in seconds from last change to the parametersLastChangedTime(double value) Sets the specified value to theLastChangedTime()field.the lens distortion matrix of cameraLensDistortionMatrix(Consumer<OVRMatrix4f> consumer) Passes theLensDistortionMatrix()field to the specifiedConsumer.LensDistortionMatrix(OVRMatrix4f value) Copies the specifiedOVRMatrix4fto theLensDistortionMatrix()field.static OVRCameraIntrinsicsmalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemAlloc.static OVRCameraIntrinsics.Buffermalloc(int capacity) Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc.static OVRCameraIntrinsics.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.static OVRCameraIntrinsicsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.static OVRCameraIntrinsicsDeprecated.static OVRCameraIntrinsics.BuffermallocStack(int capacity) Deprecated.static OVRCameraIntrinsics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRCameraIntrinsicsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static doublenExposureDurationSeconds(long struct) Unsafe version ofExposureDurationSeconds().static voidnExposureDurationSeconds(long struct, double value) Unsafe version ofExposureDurationSeconds.static doublenExposurePeriodSeconds(long struct) Unsafe version ofExposurePeriodSeconds().static voidnExposurePeriodSeconds(long struct, double value) Unsafe version ofExposurePeriodSeconds.static OVRFovPortnFOVPort(long struct) Unsafe version ofFOVPort().static voidnFOVPort(long struct, OVRFovPort value) Unsafe version ofFOVPort.static OVRSizeinImageSensorPixelResolution(long struct) Unsafe version ofImageSensorPixelResolution().static voidnImageSensorPixelResolution(long struct, OVRSizei value) Unsafe version ofImageSensorPixelResolution.static doublenLastChangedTime(long struct) Unsafe version ofLastChangedTime().static voidnLastChangedTime(long struct, double value) Unsafe version ofLastChangedTime.static OVRMatrix4fnLensDistortionMatrix(long struct) Unsafe version ofLensDistortionMatrix().static voidnLensDistortionMatrix(long struct, OVRMatrix4f value) Unsafe version ofLensDistortionMatrix.static floatnVirtualFarPlaneDistanceMeters(long struct) Unsafe version ofVirtualFarPlaneDistanceMeters().static voidnVirtualFarPlaneDistanceMeters(long struct, float value) Unsafe version ofVirtualFarPlaneDistanceMeters.static floatnVirtualNearPlaneDistanceMeters(long struct) Unsafe version ofVirtualNearPlaneDistanceMeters().static voidnVirtualNearPlaneDistanceMeters(long struct, float value) Unsafe version ofVirtualNearPlaneDistanceMeters.set(double LastChangedTime, OVRFovPort FOVPort, float VirtualNearPlaneDistanceMeters, float VirtualFarPlaneDistanceMeters, OVRSizei ImageSensorPixelResolution, OVRMatrix4f LensDistortionMatrix, double ExposurePeriodSeconds, double ExposureDurationSeconds) Initializes this struct with the specified values.set(OVRCameraIntrinsics src) Copies the specified struct data to this struct.intsizeof()floatfar plane of the virtual camera used to match the external cameraVirtualFarPlaneDistanceMeters(float value) Sets the specified value to theVirtualFarPlaneDistanceMeters()field.floatnear plane of the virtual camera used to match the external cameraVirtualNearPlaneDistanceMeters(float value) Sets the specified value to theVirtualNearPlaneDistanceMeters()field.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. -
LASTCHANGEDTIME
public static final int LASTCHANGEDTIMEThe struct member offsets. -
FOVPORT
public static final int FOVPORTThe struct member offsets. -
VIRTUALNEARPLANEDISTANCEMETERS
public static final int VIRTUALNEARPLANEDISTANCEMETERSThe struct member offsets. -
VIRTUALFARPLANEDISTANCEMETERS
public static final int VIRTUALFARPLANEDISTANCEMETERSThe struct member offsets. -
IMAGESENSORPIXELRESOLUTION
public static final int IMAGESENSORPIXELRESOLUTIONThe struct member offsets. -
LENSDISTORTIONMATRIX
public static final int LENSDISTORTIONMATRIXThe struct member offsets. -
EXPOSUREPERIODSECONDS
public static final int EXPOSUREPERIODSECONDSThe struct member offsets. -
EXPOSUREDURATIONSECONDS
public static final int EXPOSUREDURATIONSECONDSThe struct member offsets.
-
-
Constructor Details
-
OVRCameraIntrinsics
Creates aOVRCameraIntrinsicsinstance 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<OVRCameraIntrinsics>
-
LastChangedTime
public double LastChangedTime()time in seconds from last change to the parameters -
FOVPort
angles of all 4 sides of viewport -
VirtualNearPlaneDistanceMeters
public float VirtualNearPlaneDistanceMeters()near plane of the virtual camera used to match the external camera -
VirtualFarPlaneDistanceMeters
public float VirtualFarPlaneDistanceMeters()far plane of the virtual camera used to match the external camera -
ImageSensorPixelResolution
height in pixels of image sensor -
LensDistortionMatrix
the lens distortion matrix of camera -
ExposurePeriodSeconds
public double ExposurePeriodSeconds()how often, in seconds, the exposure is taken -
ExposureDurationSeconds
public double ExposureDurationSeconds()length of the exposure time -
LastChangedTime
Sets the specified value to theLastChangedTime()field. -
FOVPort
Copies the specifiedOVRFovPortto theFOVPort()field. -
FOVPort
-
VirtualNearPlaneDistanceMeters
Sets the specified value to theVirtualNearPlaneDistanceMeters()field. -
VirtualFarPlaneDistanceMeters
Sets the specified value to theVirtualFarPlaneDistanceMeters()field. -
ImageSensorPixelResolution
Copies the specifiedOVRSizeito theImageSensorPixelResolution()field. -
ImageSensorPixelResolution
Passes theImageSensorPixelResolution()field to the specifiedConsumer. -
LensDistortionMatrix
Copies the specifiedOVRMatrix4fto theLensDistortionMatrix()field. -
LensDistortionMatrix
Passes theLensDistortionMatrix()field to the specifiedConsumer. -
ExposurePeriodSeconds
Sets the specified value to theExposurePeriodSeconds()field. -
ExposureDurationSeconds
Sets the specified value to theExposureDurationSeconds()field. -
set
public OVRCameraIntrinsics set(double LastChangedTime, OVRFovPort FOVPort, float VirtualNearPlaneDistanceMeters, float VirtualFarPlaneDistanceMeters, OVRSizei ImageSensorPixelResolution, OVRMatrix4f LensDistortionMatrix, double ExposurePeriodSeconds, double ExposureDurationSeconds) 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 newOVRCameraIntrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRCameraIntrinsicsinstance allocated withBufferUtils. -
create
Returns a newOVRCameraIntrinsicsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRCameraIntrinsics.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 OVRCameraIntrinsics.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 OVRCameraIntrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nLastChangedTime
public static double nLastChangedTime(long struct) Unsafe version ofLastChangedTime(). -
nFOVPort
Unsafe version ofFOVPort(). -
nVirtualNearPlaneDistanceMeters
public static float nVirtualNearPlaneDistanceMeters(long struct) Unsafe version ofVirtualNearPlaneDistanceMeters(). -
nVirtualFarPlaneDistanceMeters
public static float nVirtualFarPlaneDistanceMeters(long struct) Unsafe version ofVirtualFarPlaneDistanceMeters(). -
nImageSensorPixelResolution
Unsafe version ofImageSensorPixelResolution(). -
nLensDistortionMatrix
Unsafe version ofLensDistortionMatrix(). -
nExposurePeriodSeconds
public static double nExposurePeriodSeconds(long struct) Unsafe version ofExposurePeriodSeconds(). -
nExposureDurationSeconds
public static double nExposureDurationSeconds(long struct) Unsafe version ofExposureDurationSeconds(). -
nLastChangedTime
public static void nLastChangedTime(long struct, double value) Unsafe version ofLastChangedTime. -
nFOVPort
Unsafe version ofFOVPort. -
nVirtualNearPlaneDistanceMeters
public static void nVirtualNearPlaneDistanceMeters(long struct, float value) Unsafe version ofVirtualNearPlaneDistanceMeters. -
nVirtualFarPlaneDistanceMeters
public static void nVirtualFarPlaneDistanceMeters(long struct, float value) Unsafe version ofVirtualFarPlaneDistanceMeters. -
nImageSensorPixelResolution
Unsafe version ofImageSensorPixelResolution. -
nLensDistortionMatrix
Unsafe version ofLensDistortionMatrix. -
nExposurePeriodSeconds
public static void nExposurePeriodSeconds(long struct, double value) Unsafe version ofExposurePeriodSeconds. -
nExposureDurationSeconds
public static void nExposureDurationSeconds(long struct, double value) Unsafe version ofExposureDurationSeconds.
-