Package org.lwjgl.ovr
Class OVRCameraIntrinsics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRCameraIntrinsics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRCameraIntrinsics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
LastChangedTime– time in seconds from last change to the parametersFOVPort– angles of all 4 sides of viewportVirtualNearPlaneDistanceMeters– near plane of the virtual camera used to match the external cameraVirtualFarPlaneDistanceMeters– far plane of the virtual camera used to match the external cameraImageSensorPixelResolution– height in pixels of image sensorLensDistortionMatrix– the lens distortion matrix of cameraExposurePeriodSeconds– how often, in seconds, the exposure is takenExposureDurationSeconds– length of the exposure time
Layout
struct ovrCameraIntrinsics { double LastChangedTime;ovrFovPortFOVPort; float VirtualNearPlaneDistanceMeters; float VirtualFarPlaneDistanceMeters;ovrSizeiImageSensorPixelResolution;ovrMatrix4fLensDistortionMatrix; double ExposurePeriodSeconds; double ExposureDurationSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRCameraIntrinsics.BufferAn array ofOVRCameraIntrinsicsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXPOSUREDURATIONSECONDS
EXPOSUREPERIODSECONDS
FOVPORT
IMAGESENSORPIXELRESOLUTION
LASTCHANGEDTIME
LENSDISTORTIONMATRIXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVIRTUALFARPLANEDISTANCEMETERS
VIRTUALNEARPLANEDISTANCEMETERSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRCameraIntrinsics(java.nio.ByteBuffer container)Creates aOVRCameraIntrinsicsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRCameraIntrinsicscalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc.static OVRCameraIntrinsics.Buffercalloc(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc.static OVRCameraIntrinsicscallocStack()Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsics.BuffercallocStack(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsicscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 OVRCameraIntrinsicscreateSafe(long address)static OVRCameraIntrinsics.BuffercreateSafe(long address, int capacity)doubleExposureDurationSeconds()Returns the value of theExposureDurationSecondsfield.OVRCameraIntrinsicsExposureDurationSeconds(double value)Sets the specified value to theExposureDurationSecondsfield.doubleExposurePeriodSeconds()Returns the value of theExposurePeriodSecondsfield.OVRCameraIntrinsicsExposurePeriodSeconds(double value)Sets the specified value to theExposurePeriodSecondsfield.OVRFovPortFOVPort()Returns aOVRFovPortview of theFOVPortfield.OVRCameraIntrinsicsFOVPort(java.util.function.Consumer<OVRFovPort> consumer)Passes theFOVPortfield to the specifiedConsumer.OVRCameraIntrinsicsFOVPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFOVPortfield.OVRSizeiImageSensorPixelResolution()Returns aOVRSizeiview of theImageSensorPixelResolutionfield.OVRCameraIntrinsicsImageSensorPixelResolution(java.util.function.Consumer<OVRSizei> consumer)Passes theImageSensorPixelResolutionfield to the specifiedConsumer.OVRCameraIntrinsicsImageSensorPixelResolution(OVRSizei value)Copies the specifiedOVRSizeito theImageSensorPixelResolutionfield.doubleLastChangedTime()Returns the value of theLastChangedTimefield.OVRCameraIntrinsicsLastChangedTime(double value)Sets the specified value to theLastChangedTimefield.OVRMatrix4fLensDistortionMatrix()Returns aOVRMatrix4fview of theLensDistortionMatrixfield.OVRCameraIntrinsicsLensDistortionMatrix(java.util.function.Consumer<OVRMatrix4f> consumer)Passes theLensDistortionMatrixfield to the specifiedConsumer.OVRCameraIntrinsicsLensDistortionMatrix(OVRMatrix4f value)Copies the specifiedOVRMatrix4fto theLensDistortionMatrixfield.static OVRCameraIntrinsicsmalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemAlloc.static OVRCameraIntrinsics.Buffermalloc(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc.static OVRCameraIntrinsicsmallocStack()Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStack.static OVRCameraIntrinsics.BuffermallocStack(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStack.static OVRCameraIntrinsics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.static OVRCameraIntrinsicsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.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.OVRCameraIntrinsicsset(double LastChangedTime, OVRFovPort FOVPort, float VirtualNearPlaneDistanceMeters, float VirtualFarPlaneDistanceMeters, OVRSizei ImageSensorPixelResolution, OVRMatrix4f LensDistortionMatrix, double ExposurePeriodSeconds, double ExposureDurationSeconds)Initializes this struct with the specified values.OVRCameraIntrinsicsset(OVRCameraIntrinsics src)Copies the specified struct data to this struct.intsizeof()floatVirtualFarPlaneDistanceMeters()Returns the value of theVirtualFarPlaneDistanceMetersfield.OVRCameraIntrinsicsVirtualFarPlaneDistanceMeters(float value)Sets the specified value to theVirtualFarPlaneDistanceMetersfield.floatVirtualNearPlaneDistanceMeters()Returns the value of theVirtualNearPlaneDistanceMetersfield.OVRCameraIntrinsicsVirtualNearPlaneDistanceMeters(float value)Sets the specified value to theVirtualNearPlaneDistanceMetersfield.
-
-
-
Constructor Detail
-
OVRCameraIntrinsics
public OVRCameraIntrinsics(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
LastChangedTime
public double LastChangedTime()
Returns the value of theLastChangedTimefield.
-
FOVPort
public OVRFovPort FOVPort()
Returns aOVRFovPortview of theFOVPortfield.
-
VirtualNearPlaneDistanceMeters
public float VirtualNearPlaneDistanceMeters()
Returns the value of theVirtualNearPlaneDistanceMetersfield.
-
VirtualFarPlaneDistanceMeters
public float VirtualFarPlaneDistanceMeters()
Returns the value of theVirtualFarPlaneDistanceMetersfield.
-
ImageSensorPixelResolution
public OVRSizei ImageSensorPixelResolution()
Returns aOVRSizeiview of theImageSensorPixelResolutionfield.
-
LensDistortionMatrix
public OVRMatrix4f LensDistortionMatrix()
Returns aOVRMatrix4fview of theLensDistortionMatrixfield.
-
ExposurePeriodSeconds
public double ExposurePeriodSeconds()
Returns the value of theExposurePeriodSecondsfield.
-
ExposureDurationSeconds
public double ExposureDurationSeconds()
Returns the value of theExposureDurationSecondsfield.
-
LastChangedTime
public OVRCameraIntrinsics LastChangedTime(double value)
Sets the specified value to theLastChangedTimefield.
-
FOVPort
public OVRCameraIntrinsics FOVPort(OVRFovPort value)
Copies the specifiedOVRFovPortto theFOVPortfield.
-
FOVPort
public OVRCameraIntrinsics FOVPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFOVPortfield to the specifiedConsumer.
-
VirtualNearPlaneDistanceMeters
public OVRCameraIntrinsics VirtualNearPlaneDistanceMeters(float value)
Sets the specified value to theVirtualNearPlaneDistanceMetersfield.
-
VirtualFarPlaneDistanceMeters
public OVRCameraIntrinsics VirtualFarPlaneDistanceMeters(float value)
Sets the specified value to theVirtualFarPlaneDistanceMetersfield.
-
ImageSensorPixelResolution
public OVRCameraIntrinsics ImageSensorPixelResolution(OVRSizei value)
Copies the specifiedOVRSizeito theImageSensorPixelResolutionfield.
-
ImageSensorPixelResolution
public OVRCameraIntrinsics ImageSensorPixelResolution(java.util.function.Consumer<OVRSizei> consumer)
Passes theImageSensorPixelResolutionfield to the specifiedConsumer.
-
LensDistortionMatrix
public OVRCameraIntrinsics LensDistortionMatrix(OVRMatrix4f value)
Copies the specifiedOVRMatrix4fto theLensDistortionMatrixfield.
-
LensDistortionMatrix
public OVRCameraIntrinsics LensDistortionMatrix(java.util.function.Consumer<OVRMatrix4f> consumer)
Passes theLensDistortionMatrixfield to the specifiedConsumer.
-
ExposurePeriodSeconds
public OVRCameraIntrinsics ExposurePeriodSeconds(double value)
Sets the specified value to theExposurePeriodSecondsfield.
-
ExposureDurationSeconds
public OVRCameraIntrinsics ExposureDurationSeconds(double value)
Sets the specified value to theExposureDurationSecondsfield.
-
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
public OVRCameraIntrinsics set(OVRCameraIntrinsics src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRCameraIntrinsics malloc()
Returns a newOVRCameraIntrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRCameraIntrinsics calloc()
Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRCameraIntrinsics create()
Returns a newOVRCameraIntrinsicsinstance allocated withBufferUtils.
-
create
public static OVRCameraIntrinsics create(long address)
Returns a newOVRCameraIntrinsicsinstance for the specified memory address.
-
createSafe
@Nullable public static OVRCameraIntrinsics createSafe(long address)
-
malloc
public static OVRCameraIntrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRCameraIntrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(long address, int capacity)
Create aOVRCameraIntrinsics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRCameraIntrinsics.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRCameraIntrinsics mallocStack()
Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRCameraIntrinsics callocStack()
Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRCameraIntrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRCameraIntrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRCameraIntrinsics.Buffer mallocStack(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRCameraIntrinsics.Buffer callocStack(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRCameraIntrinsics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRCameraIntrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nLastChangedTime
public static double nLastChangedTime(long struct)
Unsafe version ofLastChangedTime().
-
nFOVPort
public static OVRFovPort nFOVPort(long struct)
Unsafe version ofFOVPort().
-
nVirtualNearPlaneDistanceMeters
public static float nVirtualNearPlaneDistanceMeters(long struct)
Unsafe version ofVirtualNearPlaneDistanceMeters().
-
nVirtualFarPlaneDistanceMeters
public static float nVirtualFarPlaneDistanceMeters(long struct)
Unsafe version ofVirtualFarPlaneDistanceMeters().
-
nImageSensorPixelResolution
public static OVRSizei nImageSensorPixelResolution(long struct)
Unsafe version ofImageSensorPixelResolution().
-
nLensDistortionMatrix
public static OVRMatrix4f nLensDistortionMatrix(long struct)
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
public static void nFOVPort(long struct, OVRFovPort value)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
public static void nImageSensorPixelResolution(long struct, OVRSizei value)Unsafe version ofImageSensorPixelResolution.
-
nLensDistortionMatrix
public static void nLensDistortionMatrix(long struct, OVRMatrix4f value)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.
-
-