Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRLayerEyeFov

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

Describes a layer that specifies a monoscopic or stereoscopic view. This is the kind of layer that's typically used as layer 0 to SubmitFrame, as it is the kind of layer used to render a 3D stereoscopic view.

Layout


struct ovrLayerEyeFov {
    ovrLayerHeader Header;
    ovrTextureSwapChain ColorTexture[ovrEye_Count];
    ovrRecti Viewport[ovrEye_Count];
    ovrFovPort Fov[ovrEye_Count];
    ovrPosef RenderPose[ovrEye_Count];
    double SensorSampleTime;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COLORTEXTURE

The struct member offsets.

public static final int
FOV

The struct member offsets.

public static final int
HEADER

The struct member offsets.

public static final int
RENDERPOSE

The struct member offsets.

public static final int
SENSORSAMPLETIME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VIEWPORT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
OVRLayerEyeFov(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static OVRLayerEyeFov
calloc()

Returns a new OVRLayerEyeFov instance allocated with memCalloc.

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

Returns a new OVRLayerEyeFov.Buffer instance allocated with memCalloc.

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

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

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

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

public static OVRLayerEyeFov
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public PointerBuffer
ColorTexture()

ovrTextureSwapChains for the left and right eye respectively.

public long
ColorTexture(int index)

ovrTextureSwapChains for the left and right eye respectively.

public OVRLayerEyeFov
ColorTexture(PointerBuffer value)

Copies the specified PointerBuffer to the ColorTexture field.

public OVRLayerEyeFov
ColorTexture(int index, long value)

Sets the specified value at the specified index of the ColorTexture field.

protected OVRLayerEyeFov
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 OVRLayerEyeFov
create()

Returns a new OVRLayerEyeFov instance allocated with BufferUtils.

public static OVRLayerEyeFov
create(long address)

Returns a new OVRLayerEyeFov instance for the specified memory address.

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

Returns a new OVRLayerEyeFov.Buffer instance allocated with BufferUtils.

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

Create a OVRLayerEyeFov.Buffer instance at the specified memory.

public static OVRLayerEyeFov
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public OVRFovPort.Buffer
Fov()

the viewport field of view

public OVRFovPort
Fov(int index)

the viewport field of view

public OVRLayerEyeFov
Fov(OVRFovPort.Buffer value)

Copies the specified OVRFovPort.Buffer to the Fov field.

public OVRLayerEyeFov
Fov(int index, OVRFovPort value)

Copies the specified OVRFovPort at the specified index of the Fov field.

public OVRLayerEyeFov
Fov(Consumer<OVRFovPort.Buffer> consumer)

Passes the Fov field to the specified Consumer.

public OVRLayerEyeFov
Fov(int index, Consumer<OVRFovPort> consumer)

Passes the element at index of the Fov field to the specified Consumer.

public OVRLayerHeader
Header()

Header.Type must be LayerType_EyeFov

public OVRLayerEyeFov
Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the Header field.

public OVRLayerEyeFov
Header(Consumer<OVRLayerHeader> consumer)

Passes the Header field to the specified Consumer.

public static OVRLayerEyeFov
malloc()

Returns a new OVRLayerEyeFov instance allocated with memAlloc.

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

Returns a new OVRLayerEyeFov.Buffer instance allocated with memAlloc.

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

Returns a new OVRLayerEyeFov instance allocated on the specified MemoryStack.

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

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

public static OVRLayerEyeFov
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static PointerBuffer
nColorTexture(long struct)

Unsafe version of ColorTexture.

public static long
nColorTexture(long struct, int index)

Unsafe version of ColorTexture.

public static void
nColorTexture(long struct, PointerBuffer value)

Unsafe version of ColorTexture.

public static void
nColorTexture(long struct, int index, long value)

Unsafe version of ColorTexture.

public static OVRFovPort.Buffer
nFov(long struct)

Unsafe version of Fov.

public static OVRFovPort
nFov(long struct, int index)

Unsafe version of Fov.

public static void
nFov(long struct, OVRFovPort.Buffer value)

Unsafe version of Fov.

public static void
nFov(long struct, int index, OVRFovPort value)

Unsafe version of Fov.

public static OVRLayerHeader
nHeader(long struct)

Unsafe version of Header.

public static void
nHeader(long struct, OVRLayerHeader value)

Unsafe version of Header.

public static OVRPosef.Buffer
nRenderPose(long struct)

Unsafe version of RenderPose.

public static OVRPosef
nRenderPose(long struct, int index)

Unsafe version of RenderPose.

public static void
nRenderPose(long struct, OVRPosef.Buffer value)

Unsafe version of RenderPose.

public static void
nRenderPose(long struct, int index, OVRPosef value)

Unsafe version of RenderPose.

public static double
nSensorSampleTime(long struct)

Unsafe version of SensorSampleTime.

public static void
nSensorSampleTime(long struct, double value)

Unsafe version of SensorSampleTime.

public static OVRRecti.Buffer
nViewport(long struct)

Unsafe version of Viewport.

public static OVRRecti
nViewport(long struct, int index)

Unsafe version of Viewport.

public static void
nViewport(long struct, OVRRecti.Buffer value)

Unsafe version of Viewport.

public static void
nViewport(long struct, int index, OVRRecti value)

Unsafe version of Viewport.

public OVRPosef.Buffer
RenderPose()

specifies the position and orientation of each eye view, with the position specified in meters.

public OVRPosef
RenderPose(int index)

specifies the position and orientation of each eye view, with the position specified in meters.

public OVRLayerEyeFov
RenderPose(OVRPosef.Buffer value)

Copies the specified OVRPosef.Buffer to the RenderPose field.

public OVRLayerEyeFov
RenderPose(int index, OVRPosef value)

Copies the specified OVRPosef at the specified index of the RenderPose field.

public OVRLayerEyeFov
RenderPose(Consumer<OVRPosef.Buffer> consumer)

Passes the RenderPose field to the specified Consumer.

public OVRLayerEyeFov
RenderPose(int index, Consumer<OVRPosef> consumer)

Passes the element at index of the RenderPose field to the specified Consumer.

public double
SensorSampleTime()

specifies the timestamp when the source OVRPosef (used in calculating RenderPose) was sampled from the SDK.

public OVRLayerEyeFov
SensorSampleTime(double value)

Sets the specified value to the SensorSampleTime field.

public OVRLayerEyeFov
set(OVRLayerHeader Header, PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime)

Initializes this struct with the specified values.

public OVRLayerEyeFov

Returns:

this struct
set
(OVRLayerEyeFov
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 static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public OVRRecti.Buffer
Viewport()

specifies the ColorTexture sub-rect UV coordinates.

public OVRRecti
Viewport(int index)

specifies the ColorTexture sub-rect UV coordinates.

public OVRLayerEyeFov
Viewport(OVRRecti.Buffer value)

Copies the specified OVRRecti.Buffer to the Viewport field.

public OVRLayerEyeFov
Viewport(int index, OVRRecti value)

Copies the specified OVRRecti at the specified index of the Viewport field.

public OVRLayerEyeFov
Viewport(Consumer<OVRRecti.Buffer> consumer)

Passes the Viewport field to the specified Consumer.

public OVRLayerEyeFov
Viewport(int index, Consumer<OVRRecti> consumer)

Passes the element at index of the Viewport field to the specified Consumer.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate