Package org.lwjgl.ovr

Class OVRFovPort

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

public class OVRFovPort extends org.lwjgl.system.Struct<OVRFovPort> implements org.lwjgl.system.NativeResource
Field Of View (FOV) in tangent of the angle units. As an example, for a standard 90 degree vertical FOV, we would have:

 { UpTan = tan(90 degrees / 2), DownTan = tan(90 degrees / 2) }

Layout


 struct ovrFovPort {
     float UpTan();
     float DownTan();
     float LeftTan();
     float RightTan();
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of OVRFovPort structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a OVRFovPort instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static OVRFovPort
    Returns a new OVRFovPort instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new OVRFovPort.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static OVRFovPort
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new OVRFovPort instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static OVRFovPort
    Deprecated.
    callocStack(int capacity)
    Deprecated.
    callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static OVRFovPort
    callocStack(org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static OVRFovPort
    Returns a new OVRFovPort instance allocated with BufferUtils.
    create(int capacity)
    Returns a new OVRFovPort.Buffer instance allocated with BufferUtils.
    static OVRFovPort
    create(long address)
    Returns a new OVRFovPort instance for the specified memory address.
    create(long address, int capacity)
    Create a OVRFovPort.Buffer instance at the specified memory.
    static @Nullable OVRFovPort
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable OVRFovPort.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    float
    tangent of the angle between the viewing vector and bottom edge of the FOV
    DownTan(float value)
    Sets the specified value to the DownTan() field.
    float
    tangent of the angle between the viewing vector and left edge of the FOV
    LeftTan(float value)
    Sets the specified value to the LeftTan() field.
    static OVRFovPort
    Returns a new OVRFovPort instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new OVRFovPort.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack.
    static OVRFovPort
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new OVRFovPort instance allocated on the specified MemoryStack.
    static OVRFovPort
    Deprecated.
    mallocStack(int capacity)
    Deprecated.
    mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static OVRFovPort
    mallocStack(org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static float
    nDownTan(long struct)
    Unsafe version of DownTan().
    static void
    nDownTan(long struct, float value)
    Unsafe version of DownTan.
    static float
    nLeftTan(long struct)
    Unsafe version of LeftTan().
    static void
    nLeftTan(long struct, float value)
    Unsafe version of LeftTan.
    static float
    nRightTan(long struct)
    Unsafe version of RightTan().
    static void
    nRightTan(long struct, float value)
    Unsafe version of RightTan.
    static float
    nUpTan(long struct)
    Unsafe version of UpTan().
    static void
    nUpTan(long struct, float value)
    Unsafe version of UpTan.
    float
    tangent of the angle between the viewing vector and right edge of the FOV
    RightTan(float value)
    Sets the specified value to the RightTan() field.
    set(float UpTan, float DownTan, float LeftTan, float RightTan)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     
    float
    tangent of the angle between the viewing vector and top edge of the FOV
    UpTan(float value)
    Sets the specified value to the UpTan() field.

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

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

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

      public static final int UPTAN
      The struct member offsets.
    • DOWNTAN

      public static final int DOWNTAN
      The struct member offsets.
    • LEFTTAN

      public static final int LEFTTAN
      The struct member offsets.
    • RIGHTTAN

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

    • OVRFovPort

      public OVRFovPort(ByteBuffer container)
      Creates a OVRFovPort 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<OVRFovPort>
    • UpTan

      public float UpTan()
      tangent of the angle between the viewing vector and top edge of the FOV
    • DownTan

      public float DownTan()
      tangent of the angle between the viewing vector and bottom edge of the FOV
    • LeftTan

      public float LeftTan()
      tangent of the angle between the viewing vector and left edge of the FOV
    • RightTan

      public float RightTan()
      tangent of the angle between the viewing vector and right edge of the FOV
    • UpTan

      public OVRFovPort UpTan(float value)
      Sets the specified value to the UpTan() field.
    • DownTan

      public OVRFovPort DownTan(float value)
      Sets the specified value to the DownTan() field.
    • LeftTan

      public OVRFovPort LeftTan(float value)
      Sets the specified value to the LeftTan() field.
    • RightTan

      public OVRFovPort RightTan(float value)
      Sets the specified value to the RightTan() field.
    • set

      public OVRFovPort set(float UpTan, float DownTan, float LeftTan, float RightTan)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static float nUpTan(long struct)
      Unsafe version of UpTan().
    • nDownTan

      public static float nDownTan(long struct)
      Unsafe version of DownTan().
    • nLeftTan

      public static float nLeftTan(long struct)
      Unsafe version of LeftTan().
    • nRightTan

      public static float nRightTan(long struct)
      Unsafe version of RightTan().
    • nUpTan

      public static void nUpTan(long struct, float value)
      Unsafe version of UpTan.
    • nDownTan

      public static void nDownTan(long struct, float value)
      Unsafe version of DownTan.
    • nLeftTan

      public static void nLeftTan(long struct, float value)
      Unsafe version of LeftTan.
    • nRightTan

      public static void nRightTan(long struct, float value)
      Unsafe version of RightTan.