Package org.lwjgl.ovr

Class OVRTrackerDesc

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class OVRTrackerDesc
    extends Struct
    Specifies the description of a single sensor.

    Member documentation

    • FrustumHFovInRadians – sensor frustum horizontal field-of-view (if present).
    • FrustumVFovInRadians – sensor frustum vertical field-of-view (if present).
    • FrustumNearZInMeters – sensor frustum near Z (if present).
    • FrustumFarZInMeters – sensor frustum far Z (if present).

    Layout

    struct ovrTrackerDesc {
        float FrustumHFovInRadians;
        float FrustumVFovInRadians;
        float FrustumNearZInMeters;
        float FrustumFarZInMeters;
    }
    • Field Detail

      • SIZEOF

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

      • OVRTrackerDesc

        public OVRTrackerDesc(java.nio.ByteBuffer container)
        Creates a OVRTrackerDesc 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()
        Description copied from class: Struct
        Returns the sizeof(struct).
        Specified by:
        sizeof in class Struct
      • FrustumHFovInRadians

        public float FrustumHFovInRadians()
        Returns the value of the FrustumHFovInRadians field.
      • FrustumVFovInRadians

        public float FrustumVFovInRadians()
        Returns the value of the FrustumVFovInRadians field.
      • FrustumNearZInMeters

        public float FrustumNearZInMeters()
        Returns the value of the FrustumNearZInMeters field.
      • FrustumFarZInMeters

        public float FrustumFarZInMeters()
        Returns the value of the FrustumFarZInMeters field.
      • FrustumHFovInRadians

        public OVRTrackerDesc FrustumHFovInRadians(float value)
        Sets the specified value to the FrustumHFovInRadians field.
      • FrustumVFovInRadians

        public OVRTrackerDesc FrustumVFovInRadians(float value)
        Sets the specified value to the FrustumVFovInRadians field.
      • FrustumNearZInMeters

        public OVRTrackerDesc FrustumNearZInMeters(float value)
        Sets the specified value to the FrustumNearZInMeters field.
      • FrustumFarZInMeters

        public OVRTrackerDesc FrustumFarZInMeters(float value)
        Sets the specified value to the FrustumFarZInMeters field.
      • set

        public OVRTrackerDesc set(float FrustumHFovInRadians,
                                  float FrustumVFovInRadians,
                                  float FrustumNearZInMeters,
                                  float FrustumFarZInMeters)
        Initializes this struct with the specified values.
      • set

        public OVRTrackerDesc set(OVRTrackerDesc src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • create

        public static OVRTrackerDesc create(long address)
        Returns a new OVRTrackerDesc instance for the specified memory address or null if the address is NULL.
      • create

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