Package org.lwjgl.ovr
Class OVRLayerUnion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRLayerUnion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRLayerUnion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUnion that combinesovrLayertypes in a way that allows them to be used in a polymorphic way.Member documentation
Header– the layer header
Layout
union ovrLayer_Union {ovrLayerHeaderHeader;ovrLayerEyeFovEyeFov;ovrLayerEyeFovDepthEyeFovDepth;ovrLayerEyeMatrixEyeMatrix;ovrLayerEyeFovMultiresMultires;ovrLayerCylinderCylinder;ovrLayerCubeCube;ovrLayerQuadQuad; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRLayerUnion.BufferAn array ofOVRLayerUnionstructs.
-
Constructor Summary
Constructors Constructor Description OVRLayerUnion(java.nio.ByteBuffer container)Creates aOVRLayerUnioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRLayerUnioncalloc()Returns a newOVRLayerUnioninstance allocated withmemCalloc.static OVRLayerUnion.Buffercalloc(int capacity)Returns a newOVRLayerUnion.Bufferinstance allocated withmemCalloc.static OVRLayerUnioncallocStack()Returns a newOVRLayerUnioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRLayerUnion.BuffercallocStack(int capacity)Returns a newOVRLayerUnion.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRLayerUnion.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerUnioncallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 OVRLayerUnioncreateSafe(long address)static OVRLayerUnion.BuffercreateSafe(long address, int capacity)OVRLayerCubeCube()Returns aOVRLayerCubeview of theCubefield.OVRLayerUnionCube(java.util.function.Consumer<OVRLayerCube> consumer)Passes theCubefield to the specifiedConsumer.OVRLayerUnionCube(OVRLayerCube value)Copies the specifiedOVRLayerCubeto theCubefield.OVRLayerCylinderCylinder()Returns aOVRLayerCylinderview of theCylinderfield.OVRLayerUnionCylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)Passes theCylinderfield to the specifiedConsumer.OVRLayerUnionCylinder(OVRLayerCylinder value)Copies the specifiedOVRLayerCylinderto theCylinderfield.OVRLayerEyeFovEyeFov()Returns aOVRLayerEyeFovview of theEyeFovfield.OVRLayerUnionEyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)Passes theEyeFovfield to the specifiedConsumer.OVRLayerUnionEyeFov(OVRLayerEyeFov value)Copies the specifiedOVRLayerEyeFovto theEyeFovfield.OVRLayerEyeFovDepthEyeFovDepth()Returns aOVRLayerEyeFovDepthview of theEyeFovDepthfield.OVRLayerUnionEyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)Passes theEyeFovDepthfield to the specifiedConsumer.OVRLayerUnionEyeFovDepth(OVRLayerEyeFovDepth value)Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield.OVRLayerEyeMatrixEyeMatrix()Returns aOVRLayerEyeMatrixview of theEyeMatrixfield.OVRLayerUnionEyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)Passes theEyeMatrixfield to the specifiedConsumer.OVRLayerUnionEyeMatrix(OVRLayerEyeMatrix value)Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield.OVRLayerHeaderHeader()Returns aOVRLayerHeaderview of theHeaderfield.OVRLayerUnionHeader(java.util.function.Consumer<OVRLayerHeader> consumer)Passes theHeaderfield to the specifiedConsumer.OVRLayerUnionHeader(OVRLayerHeader value)Copies the specifiedOVRLayerHeaderto theHeaderfield.static OVRLayerUnionmalloc()Returns a newOVRLayerUnioninstance allocated withmemAlloc.static OVRLayerUnion.Buffermalloc(int capacity)Returns a newOVRLayerUnion.Bufferinstance allocated withmemAlloc.static OVRLayerUnionmallocStack()Returns a newOVRLayerUnioninstance allocated on the thread-localMemoryStack.static OVRLayerUnion.BuffermallocStack(int capacity)Returns a newOVRLayerUnion.Bufferinstance allocated on the thread-localMemoryStack.static OVRLayerUnion.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerUnionmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStack.OVRLayerEyeFovMultiresMultires()Returns aOVRLayerEyeFovMultiresview of theMultiresfield.OVRLayerUnionMultires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)Passes theMultiresfield to the specifiedConsumer.OVRLayerUnionMultires(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.OVRLayerQuadQuad()Returns aOVRLayerQuadview of theQuadfield.OVRLayerUnionQuad(java.util.function.Consumer<OVRLayerQuad> consumer)Passes theQuadfield to the specifiedConsumer.OVRLayerUnionQuad(OVRLayerQuad value)Copies the specifiedOVRLayerQuadto theQuadfield.OVRLayerUnionset(OVRLayerUnion src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
OVRLayerUnion
public OVRLayerUnion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Header
public OVRLayerHeader Header()
Returns aOVRLayerHeaderview of theHeaderfield.
-
EyeFov
public OVRLayerEyeFov EyeFov()
Returns aOVRLayerEyeFovview of theEyeFovfield.
-
EyeFovDepth
public OVRLayerEyeFovDepth EyeFovDepth()
Returns aOVRLayerEyeFovDepthview of theEyeFovDepthfield.
-
EyeMatrix
public OVRLayerEyeMatrix EyeMatrix()
Returns aOVRLayerEyeMatrixview of theEyeMatrixfield.
-
Multires
public OVRLayerEyeFovMultires Multires()
Returns aOVRLayerEyeFovMultiresview of theMultiresfield.
-
Cylinder
public OVRLayerCylinder Cylinder()
Returns aOVRLayerCylinderview of theCylinderfield.
-
Cube
public OVRLayerCube Cube()
Returns aOVRLayerCubeview of theCubefield.
-
Quad
public OVRLayerQuad Quad()
Returns aOVRLayerQuadview of theQuadfield.
-
Header
public OVRLayerUnion Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theHeaderfield.
-
Header
public OVRLayerUnion Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeaderfield to the specifiedConsumer.
-
EyeFov
public OVRLayerUnion EyeFov(OVRLayerEyeFov value)
Copies the specifiedOVRLayerEyeFovto theEyeFovfield.
-
EyeFov
public OVRLayerUnion EyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)
Passes theEyeFovfield to the specifiedConsumer.
-
EyeFovDepth
public OVRLayerUnion EyeFovDepth(OVRLayerEyeFovDepth value)
Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield.
-
EyeFovDepth
public OVRLayerUnion EyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)
Passes theEyeFovDepthfield to the specifiedConsumer.
-
EyeMatrix
public OVRLayerUnion EyeMatrix(OVRLayerEyeMatrix value)
Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield.
-
EyeMatrix
public OVRLayerUnion EyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)
Passes theEyeMatrixfield to the specifiedConsumer.
-
Multires
public OVRLayerUnion Multires(OVRLayerEyeFovMultires value)
Copies the specifiedOVRLayerEyeFovMultiresto theMultiresfield.
-
Multires
public OVRLayerUnion Multires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)
Passes theMultiresfield to the specifiedConsumer.
-
Cylinder
public OVRLayerUnion Cylinder(OVRLayerCylinder value)
Copies the specifiedOVRLayerCylinderto theCylinderfield.
-
Cylinder
public OVRLayerUnion Cylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)
Passes theCylinderfield to the specifiedConsumer.
-
Cube
public OVRLayerUnion Cube(OVRLayerCube value)
Copies the specifiedOVRLayerCubeto theCubefield.
-
Cube
public OVRLayerUnion Cube(java.util.function.Consumer<OVRLayerCube> consumer)
Passes theCubefield to the specifiedConsumer.
-
Quad
public OVRLayerUnion Quad(OVRLayerQuad value)
Copies the specifiedOVRLayerQuadto theQuadfield.
-
Quad
public OVRLayerUnion Quad(java.util.function.Consumer<OVRLayerQuad> consumer)
Passes theQuadfield to the specifiedConsumer.
-
set
public OVRLayerUnion set(OVRLayerUnion src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRLayerUnion malloc()
Returns a newOVRLayerUnioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRLayerUnion calloc()
Returns a newOVRLayerUnioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRLayerUnion create()
Returns a newOVRLayerUnioninstance allocated withBufferUtils.
-
create
public static OVRLayerUnion create(long address)
Returns a newOVRLayerUnioninstance for the specified memory address.
-
createSafe
@Nullable public static OVRLayerUnion createSafe(long address)
-
malloc
public static OVRLayerUnion.Buffer malloc(int capacity)
Returns a newOVRLayerUnion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRLayerUnion.Buffer calloc(int capacity)
Returns a newOVRLayerUnion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRLayerUnion.Buffer create(int capacity)
Returns a newOVRLayerUnion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRLayerUnion.Buffer create(long address, int capacity)
Create aOVRLayerUnion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRLayerUnion.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRLayerUnion mallocStack()
Returns a newOVRLayerUnioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRLayerUnion callocStack()
Returns a newOVRLayerUnioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRLayerUnion mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRLayerUnion callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRLayerUnion.Buffer mallocStack(int capacity)
Returns a newOVRLayerUnion.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRLayerUnion.Buffer callocStack(int capacity)
Returns a newOVRLayerUnion.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRLayerUnion.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRLayerUnion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nHeader
public static OVRLayerHeader nHeader(long struct)
Unsafe version ofHeader().
-
nEyeFov
public static OVRLayerEyeFov nEyeFov(long struct)
Unsafe version ofEyeFov().
-
nEyeFovDepth
public static OVRLayerEyeFovDepth nEyeFovDepth(long struct)
Unsafe version ofEyeFovDepth().
-
nEyeMatrix
public static OVRLayerEyeMatrix nEyeMatrix(long struct)
Unsafe version ofEyeMatrix().
-
nMultires
public static OVRLayerEyeFovMultires nMultires(long struct)
Unsafe version ofMultires().
-
nCylinder
public static OVRLayerCylinder nCylinder(long struct)
Unsafe version ofCylinder().
-
nCube
public static OVRLayerCube nCube(long struct)
Unsafe version ofCube().
-
nQuad
public static OVRLayerQuad nQuad(long struct)
Unsafe version ofQuad().
-
nHeader
public static void nHeader(long struct, OVRLayerHeader value)Unsafe version ofHeader.
-
nEyeFov
public static void nEyeFov(long struct, OVRLayerEyeFov value)Unsafe version ofEyeFov.
-
nEyeFovDepth
public static void nEyeFovDepth(long struct, OVRLayerEyeFovDepth value)Unsafe version ofEyeFovDepth.
-
nEyeMatrix
public static void nEyeMatrix(long struct, OVRLayerEyeMatrix value)Unsafe version ofEyeMatrix.
-
nMultires
public static void nMultires(long struct, OVRLayerEyeFovMultires value)Unsafe version ofMultires.
-
nCylinder
public static void nCylinder(long struct, OVRLayerCylinder value)Unsafe version ofCylinder.
-
nCube
public static void nCube(long struct, OVRLayerCube value)Unsafe version ofCube.
-
nQuad
public static void nQuad(long struct, OVRLayerQuad value)Unsafe version ofQuad.
-
-