Package org.lwjgl.ovr
Class OVRLayerUnion
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRLayerUnion>
org.lwjgl.ovr.OVRLayerUnion
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRLayerUnion
extends org.lwjgl.system.Struct<OVRLayerUnion>
implements org.lwjgl.system.NativeResource
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 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 member offsets.static final intThe struct member offsets.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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRLayerUnion(ByteBuffer container) Creates aOVRLayerUnioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerUnioncalloc()Returns a newOVRLayerUnioninstance allocated withmemCalloc.static OVRLayerUnion.Buffercalloc(int capacity) Returns a newOVRLayerUnion.Bufferinstance allocated withmemCalloc.static OVRLayerUnion.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerUnioncalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerUnionDeprecated.static OVRLayerUnion.BuffercallocStack(int capacity) Deprecated.static OVRLayerUnion.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerUnioncallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerUnioncreate()Returns a newOVRLayerUnioninstance allocated withBufferUtils.static OVRLayerUnion.Buffercreate(int capacity) Returns a newOVRLayerUnion.Bufferinstance allocated withBufferUtils.static OVRLayerUnioncreate(long address) Returns a newOVRLayerUnioninstance for the specified memory address.static OVRLayerUnion.Buffercreate(long address, int capacity) Create aOVRLayerUnion.Bufferinstance at the specified memory.static @Nullable OVRLayerUnioncreateSafe(long address) static @Nullable OVRLayerUnion.BuffercreateSafe(long address, int capacity) Cube()Cube(Consumer<OVRLayerCube> consumer) Passes theCubefield to the specifiedConsumer.Cube(OVRLayerCube value) Copies the specifiedOVRLayerCubeto theCubefield.Cylinder()Cylinder(Consumer<OVRLayerCylinder> consumer) Passes theCylinderfield to the specifiedConsumer.Cylinder(OVRLayerCylinder value) Copies the specifiedOVRLayerCylinderto theCylinderfield.EyeFov()EyeFov(Consumer<OVRLayerEyeFov> consumer) Passes theEyeFovfield to the specifiedConsumer.EyeFov(OVRLayerEyeFov value) Copies the specifiedOVRLayerEyeFovto theEyeFovfield.EyeFovDepth(Consumer<OVRLayerEyeFovDepth> consumer) Passes theEyeFovDepthfield to the specifiedConsumer.EyeFovDepth(OVRLayerEyeFovDepth value) Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield.EyeMatrix(Consumer<OVRLayerEyeMatrix> consumer) Passes theEyeMatrixfield to the specifiedConsumer.EyeMatrix(OVRLayerEyeMatrix value) Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield.Header()the layer headerHeader(Consumer<OVRLayerHeader> consumer) Header(OVRLayerHeader value) Copies the specifiedOVRLayerHeaderto theHeader()field.static OVRLayerUnionmalloc()Returns a newOVRLayerUnioninstance allocated withmemAlloc.static OVRLayerUnion.Buffermalloc(int capacity) Returns a newOVRLayerUnion.Bufferinstance allocated withmemAlloc.static OVRLayerUnion.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerUnionmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStack.static OVRLayerUnionDeprecated.static OVRLayerUnion.BuffermallocStack(int capacity) Deprecated.static OVRLayerUnion.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerUnionmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Multires()Multires(Consumer<OVRLayerEyeFovMultires> consumer) Passes theMultiresfield to the specifiedConsumer.Multires(OVRLayerEyeFovMultires value) Copies the specifiedOVRLayerEyeFovMultiresto theMultiresfield.static OVRLayerCubenCube(long struct) Unsafe version ofCube().static voidnCube(long struct, OVRLayerCube value) Unsafe version ofCube.static OVRLayerCylindernCylinder(long struct) Unsafe version ofCylinder().static voidnCylinder(long struct, OVRLayerCylinder value) Unsafe version ofCylinder.static OVRLayerEyeFovnEyeFov(long struct) Unsafe version ofEyeFov().static voidnEyeFov(long struct, OVRLayerEyeFov value) Unsafe version ofEyeFov.static OVRLayerEyeFovDepthnEyeFovDepth(long struct) Unsafe version ofEyeFovDepth().static voidnEyeFovDepth(long struct, OVRLayerEyeFovDepth value) Unsafe version ofEyeFovDepth.static OVRLayerEyeMatrixnEyeMatrix(long struct) Unsafe version ofEyeMatrix().static voidnEyeMatrix(long struct, OVRLayerEyeMatrix value) Unsafe version ofEyeMatrix.static OVRLayerHeadernHeader(long struct) Unsafe version ofHeader().static voidnHeader(long struct, OVRLayerHeader value) Unsafe version ofHeader.static OVRLayerEyeFovMultiresnMultires(long struct) Unsafe version ofMultires().static voidnMultires(long struct, OVRLayerEyeFovMultires value) Unsafe version ofMultires.static OVRLayerQuadnQuad(long struct) Unsafe version ofQuad().static voidnQuad(long struct, OVRLayerQuad value) Unsafe version ofQuad.Quad()Quad(Consumer<OVRLayerQuad> consumer) Passes theQuadfield to the specifiedConsumer.Quad(OVRLayerQuad value) Copies the specifiedOVRLayerQuadto theQuadfield.set(OVRLayerUnion src) Copies the specified struct data to this struct.intsizeof()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. -
HEADER
public static final int HEADERThe struct member offsets. -
EYEFOV
public static final int EYEFOVThe struct member offsets. -
EYEFOVDEPTH
public static final int EYEFOVDEPTHThe struct member offsets. -
EYEMATRIX
public static final int EYEMATRIXThe struct member offsets. -
MULTIRES
public static final int MULTIRESThe struct member offsets. -
CYLINDER
public static final int CYLINDERThe struct member offsets. -
CUBE
public static final int CUBEThe struct member offsets. -
QUAD
public static final int QUADThe struct member offsets.
-
-
Constructor Details
-
OVRLayerUnion
Creates aOVRLayerUnioninstance 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<OVRLayerUnion>
-
Header
the layer header -
EyeFov
- Returns:
- a
OVRLayerEyeFovview of theEyeFovfield.
-
EyeFovDepth
- Returns:
- a
OVRLayerEyeFovDepthview of theEyeFovDepthfield.
-
EyeMatrix
- Returns:
- a
OVRLayerEyeMatrixview of theEyeMatrixfield.
-
Multires
- Returns:
- a
OVRLayerEyeFovMultiresview of theMultiresfield.
-
Cylinder
- Returns:
- a
OVRLayerCylinderview of theCylinderfield.
-
Cube
- Returns:
- a
OVRLayerCubeview of theCubefield.
-
Quad
- Returns:
- a
OVRLayerQuadview of theQuadfield.
-
Header
Copies the specifiedOVRLayerHeaderto theHeader()field. -
Header
-
EyeFov
Copies the specifiedOVRLayerEyeFovto theEyeFovfield. -
EyeFov
Passes theEyeFovfield to the specifiedConsumer. -
EyeFovDepth
Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield. -
EyeFovDepth
Passes theEyeFovDepthfield to the specifiedConsumer. -
EyeMatrix
Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield. -
EyeMatrix
Passes theEyeMatrixfield to the specifiedConsumer. -
Multires
Copies the specifiedOVRLayerEyeFovMultiresto theMultiresfield. -
Multires
Passes theMultiresfield to the specifiedConsumer. -
Cylinder
Copies the specifiedOVRLayerCylinderto theCylinderfield. -
Cylinder
Passes theCylinderfield to the specifiedConsumer. -
Cube
Copies the specifiedOVRLayerCubeto theCubefield. -
Cube
Passes theCubefield to the specifiedConsumer. -
Quad
Copies the specifiedOVRLayerQuadto theQuadfield. -
Quad
Passes theQuadfield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRLayerUnioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerUnioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRLayerUnioninstance allocated withBufferUtils. -
create
Returns a newOVRLayerUnioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerUnion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRLayerUnion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRLayerUnion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRLayerUnion.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 OVRLayerUnion.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 OVRLayerUnion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nHeader
Unsafe version ofHeader(). -
nEyeFov
Unsafe version ofEyeFov(). -
nEyeFovDepth
Unsafe version ofEyeFovDepth(). -
nEyeMatrix
Unsafe version ofEyeMatrix(). -
nMultires
Unsafe version ofMultires(). -
nCylinder
Unsafe version ofCylinder(). -
nCube
Unsafe version ofCube(). -
nQuad
Unsafe version ofQuad(). -
nHeader
Unsafe version ofHeader. -
nEyeFov
Unsafe version ofEyeFov. -
nEyeFovDepth
Unsafe version ofEyeFovDepth. -
nEyeMatrix
Unsafe version ofEyeMatrix. -
nMultires
Unsafe version ofMultires. -
nCylinder
Unsafe version ofCylinder. -
nCube
Unsafe version ofCube. -
nQuad
Unsafe version ofQuad.
-