Package org.lwjgl.ovr
Class OVRFovPort
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRFovPort
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRFovPort extends Struct
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) }Member documentation
UpTan– the tangent of the angle between the viewing vector and the top edge of the field of viewDownTan– the tangent of the angle between the viewing vector and the bottom edge of the field of viewLeftTan– the tangent of the angle between the viewing vector and the left edge of the field of viewRightTan– the tangent of the angle between the viewing vector and the right edge of the field of view
Layout
struct ovrFovPort { float UpTan; float DownTan; float LeftTan; float RightTan; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRFovPort.BufferAn array ofOVRFovPortstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRFovPort(java.nio.ByteBuffer container)Creates aOVRFovPortinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRFovPortcalloc()Returns a newOVRFovPortinstance allocated withmemCalloc.static OVRFovPort.Buffercalloc(int capacity)Returns a newOVRFovPort.Bufferinstance allocated withmemCalloc.static OVRFovPortcallocStack()Returns a newOVRFovPortinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovPort.BuffercallocStack(int capacity)Returns a newOVRFovPort.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovPort.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovPortcallocStack(MemoryStack stack)Returns a newOVRFovPortinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovPortcreate()Returns a newOVRFovPortinstance allocated withBufferUtils.static OVRFovPort.Buffercreate(int capacity)Returns a newOVRFovPort.Bufferinstance allocated withBufferUtils.static OVRFovPortcreate(long address)static OVRFovPort.Buffercreate(long address, int capacity)Create aOVRFovPort.Bufferinstance at the specified memory.floatDownTan()Returns the value of theDownTanfield.OVRFovPortDownTan(float value)Sets the specified value to theDownTanfield.floatLeftTan()Returns the value of theLeftTanfield.OVRFovPortLeftTan(float value)Sets the specified value to theLeftTanfield.static OVRFovPortmalloc()Returns a newOVRFovPortinstance allocated withmemAlloc.static OVRFovPort.Buffermalloc(int capacity)Returns a newOVRFovPort.Bufferinstance allocated withmemAlloc.static OVRFovPortmallocStack()Returns a newOVRFovPortinstance allocated on the thread-localMemoryStack.static OVRFovPort.BuffermallocStack(int capacity)Returns a newOVRFovPort.Bufferinstance allocated on the thread-localMemoryStack.static OVRFovPort.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovPortmallocStack(MemoryStack stack)Returns a newOVRFovPortinstance allocated on the specifiedMemoryStack.OVRFovPortnset(long struct)Unsafe version ofset.floatRightTan()Returns the value of theRightTanfield.OVRFovPortRightTan(float value)Sets the specified value to theRightTanfield.OVRFovPortset(float UpTan, float DownTan, float LeftTan, float RightTan)Initializes this struct with the specified values.OVRFovPortset(OVRFovPort src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).floatUpTan()Returns the value of theUpTanfield.OVRFovPortUpTan(float value)Sets the specified value to theUpTanfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRFovPort
public OVRFovPort(java.nio.ByteBuffer container)
Creates aOVRFovPortinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
UpTan
public float UpTan()
Returns the value of theUpTanfield.
-
DownTan
public float DownTan()
Returns the value of theDownTanfield.
-
LeftTan
public float LeftTan()
Returns the value of theLeftTanfield.
-
RightTan
public float RightTan()
Returns the value of theRightTanfield.
-
UpTan
public OVRFovPort UpTan(float value)
Sets the specified value to theUpTanfield.
-
DownTan
public OVRFovPort DownTan(float value)
Sets the specified value to theDownTanfield.
-
LeftTan
public OVRFovPort LeftTan(float value)
Sets the specified value to theLeftTanfield.
-
RightTan
public OVRFovPort RightTan(float value)
Sets the specified value to theRightTanfield.
-
set
public OVRFovPort set(float UpTan, float DownTan, float LeftTan, float RightTan)
Initializes this struct with the specified values.
-
nset
public OVRFovPort nset(long struct)
Unsafe version ofset.
-
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 newOVRFovPortinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRFovPort calloc()
Returns a newOVRFovPortinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRFovPort create()
Returns a newOVRFovPortinstance allocated withBufferUtils.
-
create
public static OVRFovPort create(long address)
-
malloc
public static OVRFovPort.Buffer malloc(int capacity)
Returns a newOVRFovPort.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRFovPort.Buffer calloc(int capacity)
Returns a newOVRFovPort.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovPort.Buffer create(int capacity)
Returns a newOVRFovPort.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovPort.Buffer create(long address, int capacity)
Create aOVRFovPort.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRFovPort mallocStack()
Returns a newOVRFovPortinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRFovPort callocStack()
Returns a newOVRFovPortinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRFovPort mallocStack(MemoryStack stack)
Returns a newOVRFovPortinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRFovPort callocStack(MemoryStack stack)
Returns a newOVRFovPortinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRFovPort.Buffer mallocStack(int capacity)
Returns a newOVRFovPort.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRFovPort.Buffer callocStack(int capacity)
Returns a newOVRFovPort.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRFovPort.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRFovPort.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-