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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRFovPort(ByteBuffer container) Creates aOVRFovPortinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRFovPortcalloc()Returns a newOVRFovPortinstance allocated withmemCalloc.static OVRFovPort.Buffercalloc(int capacity) Returns a newOVRFovPort.Bufferinstance allocated withmemCalloc.static OVRFovPort.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovPortcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRFovPortinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovPortDeprecated.static OVRFovPort.BuffercallocStack(int capacity) Deprecated.static OVRFovPort.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovPortcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovPortcreate()Returns a newOVRFovPortinstance allocated withBufferUtils.static OVRFovPort.Buffercreate(int capacity) Returns a newOVRFovPort.Bufferinstance allocated withBufferUtils.static OVRFovPortcreate(long address) Returns a newOVRFovPortinstance for the specified memory address.static OVRFovPort.Buffercreate(long address, int capacity) Create aOVRFovPort.Bufferinstance at the specified memory.static @Nullable OVRFovPortcreateSafe(long address) static @Nullable OVRFovPort.BuffercreateSafe(long address, int capacity) floatDownTan()tangent of the angle between the viewing vector and bottom edge of the FOVDownTan(float value) Sets the specified value to theDownTan()field.floatLeftTan()tangent of the angle between the viewing vector and left edge of the FOVLeftTan(float value) Sets the specified value to theLeftTan()field.static OVRFovPortmalloc()Returns a newOVRFovPortinstance allocated withmemAlloc.static OVRFovPort.Buffermalloc(int capacity) Returns a newOVRFovPort.Bufferinstance allocated withmemAlloc.static OVRFovPort.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovPortmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRFovPortinstance allocated on the specifiedMemoryStack.static OVRFovPortDeprecated.static OVRFovPort.BuffermallocStack(int capacity) Deprecated.static OVRFovPort.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovPortmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static floatnDownTan(long struct) Unsafe version ofDownTan().static voidnDownTan(long struct, float value) Unsafe version ofDownTan.static floatnLeftTan(long struct) Unsafe version ofLeftTan().static voidnLeftTan(long struct, float value) Unsafe version ofLeftTan.static floatnRightTan(long struct) Unsafe version ofRightTan().static voidnRightTan(long struct, float value) Unsafe version ofRightTan.static floatnUpTan(long struct) Unsafe version ofUpTan().static voidnUpTan(long struct, float value) Unsafe version ofUpTan.floatRightTan()tangent of the angle between the viewing vector and right edge of the FOVRightTan(float value) Sets the specified value to theRightTan()field.set(float UpTan, float DownTan, float LeftTan, float RightTan) Initializes this struct with the specified values.set(OVRFovPort src) Copies the specified struct data to this struct.intsizeof()floatUpTan()tangent of the angle between the viewing vector and top edge of the FOVUpTan(float value) Sets the specified value to theUpTan()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
UPTAN
public static final int UPTANThe struct member offsets. -
DOWNTAN
public static final int DOWNTANThe struct member offsets. -
LEFTTAN
public static final int LEFTTANThe struct member offsets. -
RIGHTTAN
public static final int RIGHTTANThe struct member offsets.
-
-
Constructor Details
-
OVRFovPort
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.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
Sets the specified value to theUpTan()field. -
DownTan
Sets the specified value to theDownTan()field. -
LeftTan
Sets the specified value to theLeftTan()field. -
RightTan
Sets the specified value to theRightTan()field. -
set
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
Returns a newOVRFovPortinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRFovPortinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRFovPortinstance allocated withBufferUtils. -
create
Returns a newOVRFovPortinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRFovPort.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRFovPort.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRFovPort.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRFovPort.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRFovPortinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRFovPortinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRFovPort.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nUpTan
public static float nUpTan(long struct) Unsafe version ofUpTan(). -
nDownTan
public static float nDownTan(long struct) Unsafe version ofDownTan(). -
nLeftTan
public static float nLeftTan(long struct) Unsafe version ofLeftTan(). -
nRightTan
public static float nRightTan(long struct) Unsafe version ofRightTan(). -
nUpTan
public static void nUpTan(long struct, float value) Unsafe version ofUpTan. -
nDownTan
public static void nDownTan(long struct, float value) Unsafe version ofDownTan. -
nLeftTan
public static void nLeftTan(long struct, float value) Unsafe version ofLeftTan. -
nRightTan
public static void nRightTan(long struct, float value) Unsafe version ofRightTan.
-