Package org.lwjgl.ovr

Class OVRCameraIntrinsics

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LASTCHANGEDTIME, FOVPORT, VIRTUALNEARPLANEDISTANCEMETERS, VIRTUALFARPLANEDISTANCEMETERS, IMAGESENSORPIXELRESOLUTION, LENSDISTORTIONMATRIX, EXPOSUREPERIODSECONDS, EXPOSUREDURATIONSECONDS

        The struct member offsets.
    • 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()
        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
      • 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.
      • malloc

        public static OVRCameraIntrinsics malloc()
        Returns a new OVRCameraIntrinsics instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static OVRCameraIntrinsics calloc()
        Returns a new OVRCameraIntrinsics instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static OVRCameraIntrinsics create()
        Returns a new OVRCameraIntrinsics instance allocated with BufferUtils.
      • create

        public static OVRCameraIntrinsics create​(long address)
        Returns a new OVRCameraIntrinsics instance for the specified memory address.
      • createSafe

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

        @Deprecated
        public static OVRCameraIntrinsics mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static OVRCameraIntrinsics callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

        public static OVRCameraIntrinsics calloc​(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
      • malloc

        public static OVRCameraIntrinsics.Buffer malloc​(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
      • calloc

        public static OVRCameraIntrinsics.Buffer calloc​(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
      • nLastChangedTime

        public static double nLastChangedTime​(long struct)
        Unsafe version of LastChangedTime().
      • nExposurePeriodSeconds

        public static double nExposurePeriodSeconds​(long struct)
        Unsafe version of ExposurePeriodSeconds().
      • nExposureDurationSeconds

        public static double nExposureDurationSeconds​(long struct)
        Unsafe version of ExposureDurationSeconds().
      • nLastChangedTime

        public static void nLastChangedTime​(long struct,
                                            double value)
        Unsafe version of LastChangedTime.
      • nFOVPort

        public static void nFOVPort​(long struct,
                                    OVRFovPort value)
        Unsafe version of FOVPort.
      • nVirtualNearPlaneDistanceMeters

        public static void nVirtualNearPlaneDistanceMeters​(long struct,
                                                           float value)
      • nVirtualFarPlaneDistanceMeters

        public static void nVirtualFarPlaneDistanceMeters​(long struct,
                                                          float value)
      • nExposurePeriodSeconds

        public static void nExposurePeriodSeconds​(long struct,
                                                  double value)
        Unsafe version of ExposurePeriodSeconds.
      • nExposureDurationSeconds

        public static void nExposureDurationSeconds​(long struct,
                                                    double value)
        Unsafe version of ExposureDurationSeconds.