Package org.lwjgl.ovr

Class OVRCameraExtrinsics

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRCameraExtrinsics>
org.lwjgl.ovr.OVRCameraExtrinsics
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class OVRCameraExtrinsics extends org.lwjgl.system.Struct<OVRCameraExtrinsics> implements org.lwjgl.system.NativeResource

Layout


 struct ovrCameraExtrinsics {
     double LastChangedTimeSeconds();
     unsigned int CameraStatusFlags();
     ovrTrackedDeviceType AttachedToDevice();
     ovrPosef RelativePose();
     double LastExposureTimeSeconds();
     double ExposureLatencySeconds();
     double AdditionalLatencySeconds();
 }
  • Field Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • LASTCHANGEDTIMESECONDS

      public static final int LASTCHANGEDTIMESECONDS
      The struct member offsets.
    • CAMERASTATUSFLAGS

      public static final int CAMERASTATUSFLAGS
      The struct member offsets.
    • ATTACHEDTODEVICE

      public static final int ATTACHEDTODEVICE
      The struct member offsets.
    • RELATIVEPOSE

      public static final int RELATIVEPOSE
      The struct member offsets.
    • LASTEXPOSURETIMESECONDS

      public static final int LASTEXPOSURETIMESECONDS
      The struct member offsets.
    • EXPOSURELATENCYSECONDS

      public static final int EXPOSURELATENCYSECONDS
      The struct member offsets.
    • ADDITIONALLATENCYSECONDS

      public static final int ADDITIONALLATENCYSECONDS
      The struct member offsets.
  • Constructor Details

    • OVRCameraExtrinsics

      public OVRCameraExtrinsics(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<OVRCameraExtrinsics>
    • 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
    • LastChangedTimeSeconds

      public OVRCameraExtrinsics LastChangedTimeSeconds(double value)
      Sets the specified value to the LastChangedTimeSeconds() field.
    • CameraStatusFlags

      public OVRCameraExtrinsics CameraStatusFlags(int value)
      Sets the specified value to the CameraStatusFlags() field.
    • AttachedToDevice

      public OVRCameraExtrinsics AttachedToDevice(int value)
      Sets the specified value to the AttachedToDevice() field.
    • RelativePose

      public OVRCameraExtrinsics RelativePose(OVRPosef value)
      Copies the specified OVRPosef to the RelativePose() field.
    • RelativePose

      public OVRCameraExtrinsics RelativePose(Consumer<OVRPosef> consumer)
      Passes the RelativePose() field to the specified Consumer.
    • LastExposureTimeSeconds

      public OVRCameraExtrinsics LastExposureTimeSeconds(double value)
      Sets the specified value to the LastExposureTimeSeconds() field.
    • ExposureLatencySeconds

      public OVRCameraExtrinsics ExposureLatencySeconds(double value)
      Sets the specified value to the ExposureLatencySeconds() field.
    • AdditionalLatencySeconds

      public OVRCameraExtrinsics AdditionalLatencySeconds(double value)
      Sets the specified value to the AdditionalLatencySeconds() field.
    • 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.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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

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

      public static OVRCameraExtrinsics.Buffer malloc(int capacity)
      Returns a new OVRCameraExtrinsics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static OVRCameraExtrinsics.Buffer calloc(int capacity)
      Returns a new OVRCameraExtrinsics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static OVRCameraExtrinsics.Buffer create(int capacity)
      Returns a new OVRCameraExtrinsics.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static OVRCameraExtrinsics.Buffer create(long address, int capacity)
      Create a OVRCameraExtrinsics.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

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

      @Deprecated public static OVRCameraExtrinsics mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRCameraExtrinsics callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • 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.
    • mallocStack

      @Deprecated public static OVRCameraExtrinsics.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRCameraExtrinsics.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

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

      @Deprecated public static OVRCameraExtrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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().
    • nRelativePose

      public static OVRPosef nRelativePose(long struct)
      Unsafe version of RelativePose().
    • 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.