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.NativeResource
Member 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;
ovrFovPort
FOVPort; float VirtualNearPlaneDistanceMeters; float VirtualFarPlaneDistanceMeters;ovrSizei
ImageSensorPixelResolution;ovrMatrix4f
LensDistortionMatrix; double ExposurePeriodSeconds; double ExposureDurationSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRCameraIntrinsics.Buffer
An array ofOVRCameraIntrinsics
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EXPOSUREDURATIONSECONDS
EXPOSUREPERIODSECONDS
FOVPORT
IMAGESENSORPIXELRESOLUTION
LASTCHANGEDTIME
LENSDISTORTIONMATRIXThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VIRTUALFARPLANEDISTANCEMETERS
VIRTUALNEARPLANEDISTANCEMETERSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRCameraIntrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraIntrinsics
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRCameraIntrinsics
calloc()
Returns a newOVRCameraIntrinsics
instance allocated withmemCalloc
.static OVRCameraIntrinsics.Buffer
calloc(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withmemCalloc
.static OVRCameraIntrinsics
callocStack()
Returns a newOVRCameraIntrinsics
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRCameraIntrinsics.Buffer
callocStack(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRCameraIntrinsics.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRCameraIntrinsics
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRCameraIntrinsics
create()
Returns a newOVRCameraIntrinsics
instance allocated withBufferUtils
.static OVRCameraIntrinsics.Buffer
create(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withBufferUtils
.static OVRCameraIntrinsics
create(long address)
Returns a newOVRCameraIntrinsics
instance for the specified memory address.static OVRCameraIntrinsics.Buffer
create(long address, int capacity)
Create aOVRCameraIntrinsics.Buffer
instance at the specified memory.static OVRCameraIntrinsics
createSafe(long address)
static OVRCameraIntrinsics.Buffer
createSafe(long address, int capacity)
double
ExposureDurationSeconds()
Returns the value of theExposureDurationSeconds
field.OVRCameraIntrinsics
ExposureDurationSeconds(double value)
Sets the specified value to theExposureDurationSeconds
field.double
ExposurePeriodSeconds()
Returns the value of theExposurePeriodSeconds
field.OVRCameraIntrinsics
ExposurePeriodSeconds(double value)
Sets the specified value to theExposurePeriodSeconds
field.OVRFovPort
FOVPort()
Returns aOVRFovPort
view of theFOVPort
field.OVRCameraIntrinsics
FOVPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFOVPort
field to the specifiedConsumer
.OVRCameraIntrinsics
FOVPort(OVRFovPort value)
Copies the specifiedOVRFovPort
to theFOVPort
field.OVRSizei
ImageSensorPixelResolution()
Returns aOVRSizei
view of theImageSensorPixelResolution
field.OVRCameraIntrinsics
ImageSensorPixelResolution(java.util.function.Consumer<OVRSizei> consumer)
Passes theImageSensorPixelResolution
field to the specifiedConsumer
.OVRCameraIntrinsics
ImageSensorPixelResolution(OVRSizei value)
Copies the specifiedOVRSizei
to theImageSensorPixelResolution
field.double
LastChangedTime()
Returns the value of theLastChangedTime
field.OVRCameraIntrinsics
LastChangedTime(double value)
Sets the specified value to theLastChangedTime
field.OVRMatrix4f
LensDistortionMatrix()
Returns aOVRMatrix4f
view of theLensDistortionMatrix
field.OVRCameraIntrinsics
LensDistortionMatrix(java.util.function.Consumer<OVRMatrix4f> consumer)
Passes theLensDistortionMatrix
field to the specifiedConsumer
.OVRCameraIntrinsics
LensDistortionMatrix(OVRMatrix4f value)
Copies the specifiedOVRMatrix4f
to theLensDistortionMatrix
field.static OVRCameraIntrinsics
malloc()
Returns a newOVRCameraIntrinsics
instance allocated withmemAlloc
.static OVRCameraIntrinsics.Buffer
malloc(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withmemAlloc
.static OVRCameraIntrinsics
mallocStack()
Returns a newOVRCameraIntrinsics
instance allocated on the thread-localMemoryStack
.static OVRCameraIntrinsics.Buffer
mallocStack(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated on the thread-localMemoryStack
.static OVRCameraIntrinsics.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated on the specifiedMemoryStack
.static OVRCameraIntrinsics
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics
instance allocated on the specifiedMemoryStack
.static double
nExposureDurationSeconds(long struct)
Unsafe version ofExposureDurationSeconds()
.static void
nExposureDurationSeconds(long struct, double value)
Unsafe version ofExposureDurationSeconds
.static double
nExposurePeriodSeconds(long struct)
Unsafe version ofExposurePeriodSeconds()
.static void
nExposurePeriodSeconds(long struct, double value)
Unsafe version ofExposurePeriodSeconds
.static OVRFovPort
nFOVPort(long struct)
Unsafe version ofFOVPort()
.static void
nFOVPort(long struct, OVRFovPort value)
Unsafe version ofFOVPort
.static OVRSizei
nImageSensorPixelResolution(long struct)
Unsafe version ofImageSensorPixelResolution()
.static void
nImageSensorPixelResolution(long struct, OVRSizei value)
Unsafe version ofImageSensorPixelResolution
.static double
nLastChangedTime(long struct)
Unsafe version ofLastChangedTime()
.static void
nLastChangedTime(long struct, double value)
Unsafe version ofLastChangedTime
.static OVRMatrix4f
nLensDistortionMatrix(long struct)
Unsafe version ofLensDistortionMatrix()
.static void
nLensDistortionMatrix(long struct, OVRMatrix4f value)
Unsafe version ofLensDistortionMatrix
.static float
nVirtualFarPlaneDistanceMeters(long struct)
Unsafe version ofVirtualFarPlaneDistanceMeters()
.static void
nVirtualFarPlaneDistanceMeters(long struct, float value)
Unsafe version ofVirtualFarPlaneDistanceMeters
.static float
nVirtualNearPlaneDistanceMeters(long struct)
Unsafe version ofVirtualNearPlaneDistanceMeters()
.static void
nVirtualNearPlaneDistanceMeters(long struct, float value)
Unsafe version ofVirtualNearPlaneDistanceMeters
.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.OVRCameraIntrinsics
set(OVRCameraIntrinsics src)
Copies the specified struct data to this struct.int
sizeof()
float
VirtualFarPlaneDistanceMeters()
Returns the value of theVirtualFarPlaneDistanceMeters
field.OVRCameraIntrinsics
VirtualFarPlaneDistanceMeters(float value)
Sets the specified value to theVirtualFarPlaneDistanceMeters
field.float
VirtualNearPlaneDistanceMeters()
Returns the value of theVirtualNearPlaneDistanceMeters
field.OVRCameraIntrinsics
VirtualNearPlaneDistanceMeters(float value)
Sets the specified value to theVirtualNearPlaneDistanceMeters
field.
-
-
-
Constructor Detail
-
OVRCameraIntrinsics
public OVRCameraIntrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraIntrinsics
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
LastChangedTime
public double LastChangedTime()
Returns the value of theLastChangedTime
field.
-
FOVPort
public OVRFovPort FOVPort()
Returns aOVRFovPort
view of theFOVPort
field.
-
VirtualNearPlaneDistanceMeters
public float VirtualNearPlaneDistanceMeters()
Returns the value of theVirtualNearPlaneDistanceMeters
field.
-
VirtualFarPlaneDistanceMeters
public float VirtualFarPlaneDistanceMeters()
Returns the value of theVirtualFarPlaneDistanceMeters
field.
-
ImageSensorPixelResolution
public OVRSizei ImageSensorPixelResolution()
Returns aOVRSizei
view of theImageSensorPixelResolution
field.
-
LensDistortionMatrix
public OVRMatrix4f LensDistortionMatrix()
Returns aOVRMatrix4f
view of theLensDistortionMatrix
field.
-
ExposurePeriodSeconds
public double ExposurePeriodSeconds()
Returns the value of theExposurePeriodSeconds
field.
-
ExposureDurationSeconds
public double ExposureDurationSeconds()
Returns the value of theExposureDurationSeconds
field.
-
LastChangedTime
public OVRCameraIntrinsics LastChangedTime(double value)
Sets the specified value to theLastChangedTime
field.
-
FOVPort
public OVRCameraIntrinsics FOVPort(OVRFovPort value)
Copies the specifiedOVRFovPort
to theFOVPort
field.
-
FOVPort
public OVRCameraIntrinsics FOVPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFOVPort
field to the specifiedConsumer
.
-
VirtualNearPlaneDistanceMeters
public OVRCameraIntrinsics VirtualNearPlaneDistanceMeters(float value)
Sets the specified value to theVirtualNearPlaneDistanceMeters
field.
-
VirtualFarPlaneDistanceMeters
public OVRCameraIntrinsics VirtualFarPlaneDistanceMeters(float value)
Sets the specified value to theVirtualFarPlaneDistanceMeters
field.
-
ImageSensorPixelResolution
public OVRCameraIntrinsics ImageSensorPixelResolution(OVRSizei value)
Copies the specifiedOVRSizei
to theImageSensorPixelResolution
field.
-
ImageSensorPixelResolution
public OVRCameraIntrinsics ImageSensorPixelResolution(java.util.function.Consumer<OVRSizei> consumer)
Passes theImageSensorPixelResolution
field to the specifiedConsumer
.
-
LensDistortionMatrix
public OVRCameraIntrinsics LensDistortionMatrix(OVRMatrix4f value)
Copies the specifiedOVRMatrix4f
to theLensDistortionMatrix
field.
-
LensDistortionMatrix
public OVRCameraIntrinsics LensDistortionMatrix(java.util.function.Consumer<OVRMatrix4f> consumer)
Passes theLensDistortionMatrix
field to the specifiedConsumer
.
-
ExposurePeriodSeconds
public OVRCameraIntrinsics ExposurePeriodSeconds(double value)
Sets the specified value to theExposurePeriodSeconds
field.
-
ExposureDurationSeconds
public OVRCameraIntrinsics ExposureDurationSeconds(double value)
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
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 newOVRCameraIntrinsics
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRCameraIntrinsics calloc()
Returns a newOVRCameraIntrinsics
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRCameraIntrinsics create()
Returns a newOVRCameraIntrinsics
instance allocated withBufferUtils
.
-
create
public static OVRCameraIntrinsics create(long address)
Returns a newOVRCameraIntrinsics
instance for the specified memory address.
-
createSafe
@Nullable public static OVRCameraIntrinsics createSafe(long address)
-
malloc
public static OVRCameraIntrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRCameraIntrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(long address, int capacity)
Create aOVRCameraIntrinsics.Buffer
instance 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 newOVRCameraIntrinsics
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRCameraIntrinsics callocStack()
Returns a newOVRCameraIntrinsics
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRCameraIntrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRCameraIntrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRCameraIntrinsics.Buffer callocStack(int capacity)
Returns a newOVRCameraIntrinsics.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-