Package org.lwjgl.ovr

Class OVRCameraExtrinsics

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LASTCHANGEDTIMESECONDS, CAMERASTATUSFLAGS, ATTACHEDTODEVICE, RELATIVEPOSE, LASTEXPOSURETIMESECONDS, EXPOSURELATENCYSECONDS, ADDITIONALLATENCYSECONDS

        The struct member offsets.
    • Constructor Detail

      • OVRCameraExtrinsics

        public OVRCameraExtrinsics​(java.nio.ByteBuffer container)
        Creates a OVRCameraExtrinsics 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
      • LastChangedTimeSeconds

        public double LastChangedTimeSeconds()
        time in seconds from last change to the parameters. For instance, if the pose changes, or a camera exposure happens, this struct will be updated.
      • CameraStatusFlags

        public int CameraStatusFlags()
        current Status of the camera, a mix of bits from ovrCameraStatusFlags
      • AttachedToDevice

        public int AttachedToDevice()
        which Tracked device, if any, is the camera rigidly attached to. If set to TrackedDevice_None, then the camera is not attached to a tracked object. If the external camera moves while unattached (i.e. set to ovrTrackedDevice_None), its Pose won't be updated.
      • RelativePose

        public OVRPosef RelativePose()
        the relative Pose of the External Camera. If AttachedToDevice is TrackedDevice_None, then this is a absolute pose in tracking space.
      • LastExposureTimeSeconds

        public double LastExposureTimeSeconds()
        the time, in seconds, when the last successful exposure was taken
      • ExposureLatencySeconds

        public double ExposureLatencySeconds()
        estimated exposure latency to get from the exposure time to the system
      • AdditionalLatencySeconds

        public double AdditionalLatencySeconds()
        additional latency to get from the exposure time of the real camera to match the render time of the virtual camera
      • set

        public OVRCameraExtrinsics set​(double LastChangedTimeSeconds,
                                       int CameraStatusFlags,
                                       int AttachedToDevice,
                                       OVRPosef RelativePose,
                                       double LastExposureTimeSeconds,
                                       double ExposureLatencySeconds,
                                       double AdditionalLatencySeconds)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

        public static OVRCameraExtrinsics.Buffer calloc​(int capacity,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraExtrinsics.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
      • nLastChangedTimeSeconds

        public static double nLastChangedTimeSeconds​(long struct)
        Unsafe version of LastChangedTimeSeconds().
      • nCameraStatusFlags

        public static int nCameraStatusFlags​(long struct)
        Unsafe version of CameraStatusFlags().
      • nAttachedToDevice

        public static int nAttachedToDevice​(long struct)
        Unsafe version of AttachedToDevice().
      • nLastExposureTimeSeconds

        public static double nLastExposureTimeSeconds​(long struct)
        Unsafe version of LastExposureTimeSeconds().
      • nExposureLatencySeconds

        public static double nExposureLatencySeconds​(long struct)
        Unsafe version of ExposureLatencySeconds().
      • nAdditionalLatencySeconds

        public static double nAdditionalLatencySeconds​(long struct)
        Unsafe version of AdditionalLatencySeconds().
      • nLastChangedTimeSeconds

        public static void nLastChangedTimeSeconds​(long struct,
                                                   double value)
        Unsafe version of LastChangedTimeSeconds.
      • nCameraStatusFlags

        public static void nCameraStatusFlags​(long struct,
                                              int value)
        Unsafe version of CameraStatusFlags.
      • nAttachedToDevice

        public static void nAttachedToDevice​(long struct,
                                             int value)
        Unsafe version of AttachedToDevice.
      • nRelativePose

        public static void nRelativePose​(long struct,
                                         OVRPosef value)
        Unsafe version of RelativePose.
      • nLastExposureTimeSeconds

        public static void nLastExposureTimeSeconds​(long struct,
                                                    double value)
        Unsafe version of LastExposureTimeSeconds.
      • nExposureLatencySeconds

        public static void nExposureLatencySeconds​(long struct,
                                                   double value)
        Unsafe version of ExposureLatencySeconds.
      • nAdditionalLatencySeconds

        public static void nAdditionalLatencySeconds​(long struct,
                                                     double value)
        Unsafe version of AdditionalLatencySeconds.