Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRLayerEyeFovMultires

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

Describes a layer that specifies a monoscopic or stereoscopic view with support for optional multiresolution textures. This struct is the same as OVRLayerEyeFov plus texture layout parameters.

Three options exist with respect to mono/stereo texture usage:

Layout


struct ovrLayerEyeFovMultires {
    ovrLayerHeader Header;
    ovrTextureSwapChain ColorTexture[ovrEye_Count];
    ovrRecti Viewport[ovrEye_Count];
    ovrFovPort Fov[ovrEye_Count];
    ovrPosef RenderPose[ovrEye_Count];
    double SensorSampleTime;
    ovrTextureLayout TextureLayout;
    ovrTextureLayoutDesc_Union TextureLayoutDesc;
}

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
TEXTURELAYOUT

The struct member offsets.

public static final int
TEXTURELAYOUTDESC

The struct member offsets.

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
OVRLayerEyeFovMultires(long address, ByteBuffer container)

public
OVRLayerEyeFovMultires(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static OVRLayerEyeFovMultires
calloc()

Returns a new OVRLayerEyeFovMultires instance allocated with memCalloc.

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

Returns a new OVRLayerEyeFovMultires.Buffer instance allocated with memCalloc.

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

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

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

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

public static OVRLayerEyeFovMultires
callocStack()

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerEyeFovMultires.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 OVRLayerEyeFovMultires
ColorTexture(PointerBuffer value)

Copies the specified PointerBuffer to the ColorTexture field.

public OVRLayerEyeFovMultires
ColorTexture(int index, long value)

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

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

Returns a new OVRLayerEyeFovMultires instance allocated with BufferUtils.

public static OVRLayerEyeFovMultires
create(long address)

Returns a new OVRLayerEyeFovMultires instance for the specified memory address.

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

Returns a new OVRLayerEyeFovMultires.Buffer instance allocated with BufferUtils.

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

Create a OVRLayerEyeFovMultires.Buffer instance at the specified memory.

public static OVRLayerEyeFovMultires
createSafe(long address)

Like create, but returns null if address is NULL.

public static OVRLayerEyeFovMultires.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 OVRLayerEyeFovMultires
Fov(OVRFovPort.Buffer value)

Copies the specified OVRFovPort.Buffer to the Fov field.

public OVRLayerEyeFovMultires
Fov(int index, OVRFovPort value)

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

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

Passes the Fov field to the specified Consumer.

public OVRLayerEyeFovMultires
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_EyeFovMultires

public OVRLayerEyeFovMultires
Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the Header field.

public OVRLayerEyeFovMultires
Header(Consumer<OVRLayerHeader> consumer)

Passes the Header field to the specified Consumer.

public static OVRLayerEyeFovMultires
malloc()

Returns a new OVRLayerEyeFovMultires instance allocated with memAlloc.

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

Returns a new OVRLayerEyeFovMultires.Buffer instance allocated with memAlloc.

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

Returns a new OVRLayerEyeFovMultires instance allocated on the specified MemoryStack.

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

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

public static OVRLayerEyeFovMultires
mallocStack()

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerEyeFovMultires.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 int
nTextureLayout(long struct)

Unsafe version of TextureLayout.

public static void
nTextureLayout(long struct, int value)

Unsafe version of TextureLayout.

public static OVRTextureLayoutDescUnion
nTextureLayoutDesc(long struct)

Unsafe version of TextureLayoutDesc.

public static void
nTextureLayoutDesc(long struct, OVRTextureLayoutDescUnion value)

Unsafe version of TextureLayoutDesc.

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 position specified in meters.

public OVRPosef
RenderPose(int index)

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

public OVRLayerEyeFovMultires
RenderPose(OVRPosef.Buffer value)

Copies the specified OVRPosef.Buffer to the RenderPose field.

public OVRLayerEyeFovMultires
RenderPose(int index, OVRPosef value)

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

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

Passes the RenderPose field to the specified Consumer.

public OVRLayerEyeFovMultires
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 OVRLayerEyeFovMultires
SensorSampleTime(double value)

Sets the specified value to the SensorSampleTime field.

public OVRLayerEyeFovMultires
set(OVRLayerHeader Header, PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime, int TextureLayout, OVRTextureLayoutDescUnion TextureLayoutDesc)

Initializes this struct with the specified values.

public OVRLayerEyeFovMultires

Returns:

this struct
set
(OVRLayerEyeFovMultires
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 int
TextureLayout()

specifies layout type of textures

public OVRLayerEyeFovMultires
TextureLayout(int value)

Sets the specified value to the TextureLayout field.

public OVRTextureLayoutDescUnion
TextureLayoutDesc()

specifies texture layout parameters

public OVRLayerEyeFovMultires
public OVRLayerEyeFovMultires
TextureLayoutDesc(Consumer<OVRTextureLayoutDescUnion> consumer)

Passes the TextureLayoutDesc field to the specified Consumer.

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 OVRLayerEyeFovMultires
Viewport(OVRRecti.Buffer value)

Copies the specified OVRRecti.Buffer to the Viewport field.

public OVRLayerEyeFovMultires
Viewport(int index, OVRRecti value)

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

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

Passes the Viewport field to the specified Consumer.

public OVRLayerEyeFovMultires
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