Package org.lwjgl.ovr

Class OVRTrackerDesc

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

public class OVRTrackerDesc extends org.lwjgl.system.Struct<OVRTrackerDesc> implements org.lwjgl.system.NativeResource
Specifies the description of a single sensor.

Layout


 struct ovrTrackerDesc {
     float FrustumHFovInRadians();
     float FrustumVFovInRadians();
     float FrustumNearZInMeters();
     float FrustumFarZInMeters();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FRUSTUMHFOVINRADIANS
      The struct member offsets.
    • FRUSTUMVFOVINRADIANS

      public static final int FRUSTUMVFOVINRADIANS
      The struct member offsets.
    • FRUSTUMNEARZINMETERS

      public static final int FRUSTUMNEARZINMETERS
      The struct member offsets.
    • FRUSTUMFARZINMETERS

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

    • OVRTrackerDesc

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

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<OVRTrackerDesc>
    • FrustumHFovInRadians

      public float FrustumHFovInRadians()
      sensor frustum horizontal field-of-view (if present).
    • FrustumVFovInRadians

      public float FrustumVFovInRadians()
      sensor frustum vertical field-of-view (if present).
    • FrustumNearZInMeters

      public float FrustumNearZInMeters()
      sensor frustum near Z (if present).
    • FrustumFarZInMeters

      public float FrustumFarZInMeters()
      sensor frustum far Z (if present).
    • malloc

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

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

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

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

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

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

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

      public static OVRTrackerDesc.Buffer create(int capacity)
      Returns a new OVRTrackerDesc.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • 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
    • createSafe

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

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

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

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

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

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

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

      @Deprecated public static OVRTrackerDesc.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 OVRTrackerDesc.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 OVRTrackerDesc malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new OVRTrackerDesc instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

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

      public static float nFrustumHFovInRadians(long struct)
      Unsafe version of FrustumHFovInRadians().
    • nFrustumVFovInRadians

      public static float nFrustumVFovInRadians(long struct)
      Unsafe version of FrustumVFovInRadians().
    • nFrustumNearZInMeters

      public static float nFrustumNearZInMeters(long struct)
      Unsafe version of FrustumNearZInMeters().
    • nFrustumFarZInMeters

      public static float nFrustumFarZInMeters(long struct)
      Unsafe version of FrustumFarZInMeters().