Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRLayerUnion

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

Union that combines ovrLayer types in a way that allows them to be used in a polymorphic way.

Layout


union ovrLayer_Union {
    ovrLayerHeader Header;
    ovrLayerEyeFov EyeFov;
    ovrLayerEyeFovDepth EyeFovDepth;
    ovrLayerEyeMatrix EyeMatrix;
    ovrLayerEyeFovMultires Multires;
    ovrLayerCylinder Cylinder;
    ovrLayerCube Cube;
    ovrLayerQuad Quad;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
OVRLayerUnion.Buffer

An array of OVRLayerUnion structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CUBE

The struct member offsets.

public static final int
CYLINDER

The struct member offsets.

public static final int
EYEFOV

The struct member offsets.

public static final int
EYEFOVDEPTH

The struct member offsets.

public static final int
EYEMATRIX

The struct member offsets.

public static final int
HEADER

The struct member offsets.

public static final int
MULTIRES

The struct member offsets.

public static final int
QUAD

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
OVRLayerUnion(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static OVRLayerUnion
calloc()

Returns a new OVRLayerUnion instance allocated with memCalloc.

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

Returns a new OVRLayerUnion.Buffer instance allocated with memCalloc.

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

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

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

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

public static OVRLayerUnion
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected OVRLayerUnion
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 OVRLayerUnion
create()

Returns a new OVRLayerUnion instance allocated with BufferUtils.

public static OVRLayerUnion
create(long address)

Returns a new OVRLayerUnion instance for the specified memory address.

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

Returns a new OVRLayerUnion.Buffer instance allocated with BufferUtils.

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

Create a OVRLayerUnion.Buffer instance at the specified memory.

public static OVRLayerUnion
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public OVRLayerCube

Returns:

a OVRLayerCube view of the Cube field.
Cube
()

public OVRLayerUnion
Cube(OVRLayerCube value)

Copies the specified OVRLayerCube to the Cube field.

public OVRLayerUnion
Cube(Consumer<OVRLayerCube> consumer)

Passes the Cube field to the specified Consumer.

public OVRLayerCylinder

Returns:

a OVRLayerCylinder view of the Cylinder field.
Cylinder
()

public OVRLayerUnion
Cylinder(OVRLayerCylinder value)

Copies the specified OVRLayerCylinder to the Cylinder field.

public OVRLayerUnion
Cylinder(Consumer<OVRLayerCylinder> consumer)

Passes the Cylinder field to the specified Consumer.

public OVRLayerEyeFov

Returns:

a OVRLayerEyeFov view of the EyeFov field.
EyeFov
()

public OVRLayerUnion
EyeFov(OVRLayerEyeFov value)

Copies the specified OVRLayerEyeFov to the EyeFov field.

public OVRLayerUnion
EyeFov(Consumer<OVRLayerEyeFov> consumer)

Passes the EyeFov field to the specified Consumer.

public OVRLayerEyeFovDepth

Returns:

a OVRLayerEyeFovDepth view of the EyeFovDepth field.
EyeFovDepth
()

public OVRLayerUnion
EyeFovDepth(OVRLayerEyeFovDepth value)

Copies the specified OVRLayerEyeFovDepth to the EyeFovDepth field.

public OVRLayerUnion
EyeFovDepth(Consumer<OVRLayerEyeFovDepth> consumer)

Passes the EyeFovDepth field to the specified Consumer.

public OVRLayerEyeMatrix

Returns:

a OVRLayerEyeMatrix view of the EyeMatrix field.
EyeMatrix
()

public OVRLayerUnion
EyeMatrix(OVRLayerEyeMatrix value)

Copies the specified OVRLayerEyeMatrix to the EyeMatrix field.

public OVRLayerUnion
EyeMatrix(Consumer<OVRLayerEyeMatrix> consumer)

Passes the EyeMatrix field to the specified Consumer.

public OVRLayerHeader
Header()

the layer header

public OVRLayerUnion
Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the Header field.

public OVRLayerUnion
Header(Consumer<OVRLayerHeader> consumer)

Passes the Header field to the specified Consumer.

public static OVRLayerUnion
malloc()

Returns a new OVRLayerUnion instance allocated with memAlloc.

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

Returns a new OVRLayerUnion.Buffer instance allocated with memAlloc.

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

Returns a new OVRLayerUnion instance allocated on the specified MemoryStack.

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

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

public static OVRLayerUnion
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public OVRLayerEyeFovMultires

Returns:

a OVRLayerEyeFovMultires view of the Multires field.
Multires
()

public OVRLayerUnion
Multires(OVRLayerEyeFovMultires value)

Copies the specified OVRLayerEyeFovMultires to the Multires field.

public OVRLayerUnion
Multires(Consumer<OVRLayerEyeFovMultires> consumer)

Passes the Multires field to the specified Consumer.

public static OVRLayerCube
nCube(long struct)

Unsafe version of Cube.

public static void
nCube(long struct, OVRLayerCube value)

Unsafe version of Cube.

public static OVRLayerCylinder
nCylinder(long struct)

Unsafe version of Cylinder.

public static void
nCylinder(long struct, OVRLayerCylinder value)

Unsafe version of Cylinder.

public static OVRLayerEyeFov
nEyeFov(long struct)

Unsafe version of EyeFov.

public static void
nEyeFov(long struct, OVRLayerEyeFov value)

Unsafe version of EyeFov.

public static OVRLayerEyeFovDepth
nEyeFovDepth(long struct)

Unsafe version of EyeFovDepth.

public static void
nEyeFovDepth(long struct, OVRLayerEyeFovDepth value)

Unsafe version of EyeFovDepth.

public static OVRLayerEyeMatrix
nEyeMatrix(long struct)

Unsafe version of EyeMatrix.

public static void
nEyeMatrix(long struct, OVRLayerEyeMatrix value)

Unsafe version of EyeMatrix.

public static OVRLayerHeader
nHeader(long struct)

Unsafe version of Header.

public static void
nHeader(long struct, OVRLayerHeader value)

Unsafe version of Header.

public static OVRLayerEyeFovMultires
nMultires(long struct)

Unsafe version of Multires.

public static void
nMultires(long struct, OVRLayerEyeFovMultires value)

Unsafe version of Multires.

public static OVRLayerQuad
nQuad(long struct)

Unsafe version of Quad.

public static void
nQuad(long struct, OVRLayerQuad value)

Unsafe version of Quad.

public OVRLayerQuad

Returns:

a OVRLayerQuad view of the Quad field.
Quad
()

public OVRLayerUnion
Quad(OVRLayerQuad value)

Copies the specified OVRLayerQuad to the Quad field.

public OVRLayerUnion
Quad(Consumer<OVRLayerQuad> consumer)

Passes the Quad field to the specified Consumer.

public OVRLayerUnion

Returns:

this struct
set
(OVRLayerUnion
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).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate