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.NativeResourceLayout
struct ovrCameraIntrinsics { doubleLastChangedTime();ovrFovPortFOVPort(); floatVirtualNearPlaneDistanceMeters(); floatVirtualFarPlaneDistanceMeters();ovrSizeiImageSensorPixelResolution();ovrMatrix4fLensDistortionMatrix(); doubleExposurePeriodSeconds(); doubleExposureDurationSeconds(); }
-
-
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 Deprecated 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 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 OVRCameraIntrinsicscallocStack()Deprecated.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 OVRCameraIntrinsicscreateSafe(long address)static OVRCameraIntrinsics.BuffercreateSafe(long address, int capacity)doubleExposureDurationSeconds()length of the exposure timeOVRCameraIntrinsicsExposureDurationSeconds(double value)Sets the specified value to theExposureDurationSeconds()field.doubleExposurePeriodSeconds()how often, in seconds, the exposure is takenOVRCameraIntrinsicsExposurePeriodSeconds(double value)Sets the specified value to theExposurePeriodSeconds()field.OVRFovPortFOVPort()angles of all 4 sides of viewportOVRCameraIntrinsicsFOVPort(java.util.function.Consumer<OVRFovPort> consumer)Passes theFOVPort()field to the specifiedConsumer.OVRCameraIntrinsicsFOVPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFOVPort()field.OVRSizeiImageSensorPixelResolution()height in pixels of image sensorOVRCameraIntrinsicsImageSensorPixelResolution(java.util.function.Consumer<OVRSizei> consumer)Passes theImageSensorPixelResolution()field to the specifiedConsumer.OVRCameraIntrinsicsImageSensorPixelResolution(OVRSizei value)Copies the specifiedOVRSizeito theImageSensorPixelResolution()field.doubleLastChangedTime()time in seconds from last change to the parametersOVRCameraIntrinsicsLastChangedTime(double value)Sets the specified value to theLastChangedTime()field.OVRMatrix4fLensDistortionMatrix()the lens distortion matrix of cameraOVRCameraIntrinsicsLensDistortionMatrix(java.util.function.Consumer<OVRMatrix4f> consumer)Passes theLensDistortionMatrix()field to the specifiedConsumer.OVRCameraIntrinsicsLensDistortionMatrix(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 OVRCameraIntrinsicsmallocStack()Deprecated.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.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()far plane of the virtual camera used to match the external cameraOVRCameraIntrinsicsVirtualFarPlaneDistanceMeters(float value)Sets the specified value to theVirtualFarPlaneDistanceMeters()field.floatVirtualNearPlaneDistanceMeters()near plane of the virtual camera used to match the external cameraOVRCameraIntrinsicsVirtualNearPlaneDistanceMeters(float value)Sets the specified value to theVirtualNearPlaneDistanceMeters()field.
-
-
-
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()
time in seconds from last change to the parameters
-
FOVPort
public OVRFovPort 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
public OVRSizei ImageSensorPixelResolution()
height in pixels of image sensor
-
LensDistortionMatrix
public OVRMatrix4f 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
public OVRCameraIntrinsics LastChangedTime(double value)
Sets the specified value to theLastChangedTime()field.
-
FOVPort
public OVRCameraIntrinsics FOVPort(OVRFovPort value)
Copies the specifiedOVRFovPortto 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 specifiedOVRSizeito 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 specifiedOVRMatrix4fto 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 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
@Deprecated public static OVRCameraIntrinsics mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraIntrinsics callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRCameraIntrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraIntrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRCameraIntrinsics.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRCameraIntrinsics.Buffer callocStack(int capacity)
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
public static OVRCameraIntrinsics malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRCameraIntrinsics calloc(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
-
malloc
public static OVRCameraIntrinsics.Buffer malloc(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
-
calloc
public static OVRCameraIntrinsics.Buffer calloc(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.
-
-