Package org.lwjgl.ovr

Class 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 parameters
    • FOVPort – angles of all 4 sides of viewport
    • VirtualNearPlaneDistanceMeters – near plane of the virtual camera used to match the external camera
    • 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 – how often, in seconds, the exposure is taken
    • ExposureDurationSeconds – length of the exposure time

    Layout

     struct ovrCameraIntrinsics {
         double LastChangedTime;
         ovrFovPort FOVPort;
         float VirtualNearPlaneDistanceMeters;
         float VirtualFarPlaneDistanceMeters;
         ovrSizei ImageSensorPixelResolution;
         ovrMatrix4f LensDistortionMatrix;
         double ExposurePeriodSeconds;
         double ExposureDurationSeconds;
     }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • OVRCameraIntrinsics

        public OVRCameraIntrinsics(java.nio.ByteBuffer container)
        Creates a OVRCameraIntrinsics instance at the current position of the specified ByteBuffer 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 class org.lwjgl.system.Struct
      • LastChangedTime

        public double LastChangedTime()
        Returns the value of the LastChangedTime field.
      • VirtualNearPlaneDistanceMeters

        public float VirtualNearPlaneDistanceMeters()
        Returns the value of the VirtualNearPlaneDistanceMeters field.
      • VirtualFarPlaneDistanceMeters

        public float VirtualFarPlaneDistanceMeters()
        Returns the value of the VirtualFarPlaneDistanceMeters field.
      • ImageSensorPixelResolution

        public OVRSizei ImageSensorPixelResolution()
        Returns a OVRSizei view of the ImageSensorPixelResolution field.
      • LensDistortionMatrix

        public OVRMatrix4f LensDistortionMatrix()
        Returns a OVRMatrix4f view of the LensDistortionMatrix field.
      • ExposurePeriodSeconds

        public double ExposurePeriodSeconds()
        Returns the value of the ExposurePeriodSeconds field.
      • ExposureDurationSeconds

        public double ExposureDurationSeconds()
        Returns the value of the ExposureDurationSeconds field.
      • LastChangedTime

        public OVRCameraIntrinsics LastChangedTime(double value)
        Sets the specified value to the LastChangedTime field.
      • VirtualNearPlaneDistanceMeters

        public OVRCameraIntrinsics VirtualNearPlaneDistanceMeters(float value)
        Sets the specified value to the VirtualNearPlaneDistanceMeters field.
      • VirtualFarPlaneDistanceMeters

        public OVRCameraIntrinsics VirtualFarPlaneDistanceMeters(float value)
        Sets the specified value to the VirtualFarPlaneDistanceMeters field.
      • ExposurePeriodSeconds

        public OVRCameraIntrinsics ExposurePeriodSeconds(double value)
        Sets the specified value to the ExposurePeriodSeconds field.
      • ExposureDurationSeconds

        public OVRCameraIntrinsics ExposureDurationSeconds(double value)
        Sets the specified value to the ExposureDurationSeconds 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.
      • createSafe

        @Nullable
        public static OVRCameraIntrinsics createSafe(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static OVRCameraIntrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraIntrinsics instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static OVRCameraIntrinsics callocStack(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraIntrinsics instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static OVRCameraIntrinsics.Buffer mallocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraIntrinsics.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static OVRCameraIntrinsics.Buffer callocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraIntrinsics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity