Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRFovPort

extends Struct<OVRFovPort>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct ovrFovPort
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
OVRFovPort.Buffer

An array of OVRFovPort structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DOWNTAN

The struct member offsets.

public static final int
LEFTTAN

The struct member offsets.

public static final int
RIGHTTAN

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UPTAN

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
OVRFovPort(long address, ByteBuffer container)

public
OVRFovPort(ByteBuffer container)

Creates a OVRFovPort instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static OVRFovPort
calloc()

Returns a new OVRFovPort instance allocated with memCalloc.

public static OVRFovPort.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new OVRFovPort.Buffer instance allocated with memCalloc.

public static OVRFovPort
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRFovPort instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRFovPort.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRFovPort
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected OVRFovPort
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static OVRFovPort
create()

Returns a new OVRFovPort instance allocated with BufferUtils.

public static OVRFovPort
create(long address)

Returns a new OVRFovPort instance for the specified memory address.

public static OVRFovPort.Buffer
create(int
the buffer capacity
capacity
)

Returns a new OVRFovPort.Buffer instance allocated with BufferUtils.

public static OVRFovPort.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a OVRFovPort.Buffer instance at the specified memory.

public static OVRFovPort
createSafe(long address)

Like create, but returns null if address is NULL.

public static OVRFovPort.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float
DownTan()

tangent of the angle between the viewing vector and bottom edge of the FOV

public OVRFovPort
DownTan(float value)

Sets the specified value to the DownTan field.

public float
LeftTan()

tangent of the angle between the viewing vector and left edge of the FOV

public OVRFovPort
LeftTan(float value)

Sets the specified value to the LeftTan field.

public static OVRFovPort
malloc()

Returns a new OVRFovPort instance allocated with memAlloc.

public static OVRFovPort.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new OVRFovPort.Buffer instance allocated with memAlloc.

public static OVRFovPort
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRFovPort instance allocated on the specified MemoryStack.

public static OVRFovPort.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack.

public static OVRFovPort
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRFovPort.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static float
nDownTan(long struct)

Unsafe version of DownTan.

public static void
nDownTan(long struct, float value)

Unsafe version of DownTan.

public static float
nLeftTan(long struct)

Unsafe version of LeftTan.

public static void
nLeftTan(long struct, float value)

Unsafe version of LeftTan.

public static float
nRightTan(long struct)

Unsafe version of RightTan.

public static void
nRightTan(long struct, float value)

Unsafe version of RightTan.

public static float
nUpTan(long struct)

Unsafe version of UpTan.

public static void
nUpTan(long struct, float value)

Unsafe version of UpTan.

public float
RightTan()

tangent of the angle between the viewing vector and right edge of the FOV

public OVRFovPort
RightTan(float value)

Sets the specified value to the RightTan field.

public OVRFovPort
set(float UpTan, float DownTan, float LeftTan, float RightTan)

Initializes this struct with the specified values.

public OVRFovPort

Returns:

this struct
set
(OVRFovPort
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public float
UpTan()

tangent of the angle between the viewing vector and top edge of the FOV

public OVRFovPort
UpTan(float value)

Sets the specified value to the UpTan field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

DOWNTANback to summary
public static final int DOWNTAN

The struct member offsets.

LEFTTANback to summary
public static final int LEFTTAN

The struct member offsets.

RIGHTTANback to summary
public static final int RIGHTTAN

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UPTANback to summary
public static final int UPTAN

The struct member offsets.

Constructor Detail

OVRFovPortback to summary
protected OVRFovPort(long address, ByteBuffer container)
OVRFovPortback to summary
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 Detail

callocback to summary
public static OVRFovPort calloc()

Returns a new OVRFovPort instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static OVRFovPort.Buffer calloc(int capacity)

Returns a new OVRFovPort.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static OVRFovPort calloc(MemoryStack stack)

Returns a new OVRFovPort instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static OVRFovPort.Buffer calloc(int capacity, MemoryStack stack)

Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static OVRFovPort callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRFovPort callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRFovPort.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRFovPort.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected OVRFovPort create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static OVRFovPort create()

Returns a new OVRFovPort instance allocated with BufferUtils.

createback to summary
public static OVRFovPort create(long address)

Returns a new OVRFovPort instance for the specified memory address.

createback to summary
public static OVRFovPort.Buffer create(int capacity)

Returns a new OVRFovPort.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static OVRFovPort.Buffer create(long address, int capacity)

Create a OVRFovPort.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static OVRFovPort createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static OVRFovPort.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
DownTanback to summary
public float DownTan()

tangent of the angle between the viewing vector and bottom edge of the FOV

DownTanback to summary
public OVRFovPort DownTan(float value)

Sets the specified value to the DownTan field.

LeftTanback to summary
public float LeftTan()

tangent of the angle between the viewing vector and left edge of the FOV

LeftTanback to summary
public OVRFovPort LeftTan(float value)

Sets the specified value to the LeftTan field.

mallocback to summary
public static OVRFovPort malloc()

Returns a new OVRFovPort instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static OVRFovPort.Buffer malloc(int capacity)

Returns a new OVRFovPort.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static OVRFovPort malloc(MemoryStack stack)

Returns a new OVRFovPort instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static OVRFovPort.Buffer malloc(int capacity, MemoryStack stack)

Returns a new OVRFovPort.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static OVRFovPort mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRFovPort mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRFovPort.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRFovPort.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nDownTanback to summary
public static float nDownTan(long struct)

Unsafe version of DownTan.

nDownTanback to summary
public static void nDownTan(long struct, float value)

Unsafe version of DownTan.

nLeftTanback to summary
public static float nLeftTan(long struct)

Unsafe version of LeftTan.

nLeftTanback to summary
public static void nLeftTan(long struct, float value)

Unsafe version of LeftTan.

nRightTanback to summary
public static float nRightTan(long struct)

Unsafe version of RightTan.

nRightTanback to summary
public static void nRightTan(long struct, float value)

Unsafe version of RightTan.

nUpTanback to summary
public static float nUpTan(long struct)

Unsafe version of UpTan.

nUpTanback to summary
public static void nUpTan(long struct, float value)

Unsafe version of UpTan.

RightTanback to summary
public float RightTan()

tangent of the angle between the viewing vector and right edge of the FOV

RightTanback to summary
public OVRFovPort RightTan(float value)

Sets the specified value to the RightTan field.

setback to summary
public OVRFovPort set(float UpTan, float DownTan, float LeftTan, float RightTan)

Initializes this struct with the specified values.

setback to summary
public OVRFovPort set(OVRFovPort src)

Copies the specified struct data to this struct.

Parameters
src:OVRFovPort

the source struct

Returns:OVRFovPort

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
UpTanback to summary
public float UpTan()

tangent of the angle between the viewing vector and top edge of the FOV

UpTanback to summary
public OVRFovPort UpTan(float value)

Sets the specified value to the UpTan field.

org.lwjgl.ovr back to summary

public Class OVRFovPort.Buffer

extends StructBuffer<OVRFovPort, OVRFovPort.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of OVRFovPort structs.

Field Summary

Modifier and TypeField and Description
private static final OVRFovPort

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new OVRFovPort.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the value of the OVRFovPort#DownTan field.
DownTan
()

public OVRFovPort.Buffer
DownTan(float value)

Sets the specified value to the OVRFovPort#DownTan field.

protected OVRFovPort
public float

Returns:

the value of the OVRFovPort#LeftTan field.
LeftTan
()

public OVRFovPort.Buffer
LeftTan(float value)

Sets the specified value to the OVRFovPort#LeftTan field.

public float

Returns:

the value of the OVRFovPort#RightTan field.
RightTan
()

public OVRFovPort.Buffer
RightTan(float value)

Sets the specified value to the OVRFovPort#RightTan field.

protected OVRFovPort.Buffer
public float

Returns:

the value of the OVRFovPort#UpTan field.
UpTan
()

public OVRFovPort.Buffer
UpTan(float value)

Sets the specified value to the OVRFovPort#UpTan field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final OVRFovPort ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new OVRFovPort.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by OVRFovPort#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

DownTanback to summary
public float DownTan()
Returns:float

the value of the OVRFovPort#DownTan field.

DownTanback to summary
public OVRFovPort.Buffer DownTan(float value)

Sets the specified value to the OVRFovPort#DownTan field.

getElementFactoryback to summary
protected OVRFovPort getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
LeftTanback to summary
public float LeftTan()
Returns:float

the value of the OVRFovPort#LeftTan field.

LeftTanback to summary
public OVRFovPort.Buffer LeftTan(float value)

Sets the specified value to the OVRFovPort#LeftTan field.

RightTanback to summary
public float RightTan()
Returns:float

the value of the OVRFovPort#RightTan field.

RightTanback to summary
public OVRFovPort.Buffer RightTan(float value)

Sets the specified value to the OVRFovPort#RightTan field.

selfback to summary
protected OVRFovPort.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
UpTanback to summary
public float UpTan()
Returns:float

the value of the OVRFovPort#UpTan field.

UpTanback to summary
public OVRFovPort.Buffer UpTan(float value)

Sets the specified value to the OVRFovPort#UpTan field.