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.NativeResource
Union that combinesovrLayer
types in a way that allows them to be used in a polymorphic way.Member documentation
Header
– the layer header
Layout
union ovrLayer_Union {
ovrLayerHeader
Header;ovrLayerEyeFov
EyeFov;ovrLayerEyeFovDepth
EyeFovDepth;ovrLayerEyeMatrix
EyeMatrix;ovrLayerEyeFovMultires
Multires;ovrLayerCylinder
Cylinder;ovrLayerCube
Cube;ovrLayerQuad
Quad; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRLayerUnion.Buffer
An array ofOVRLayerUnion
structs.
-
Constructor Summary
Constructors Constructor Description OVRLayerUnion(java.nio.ByteBuffer container)
Creates aOVRLayerUnion
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRLayerUnion
calloc()
Returns a newOVRLayerUnion
instance allocated withmemCalloc
.static OVRLayerUnion.Buffer
calloc(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withmemCalloc
.static OVRLayerUnion
callocStack()
Returns a newOVRLayerUnion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRLayerUnion.Buffer
callocStack(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRLayerUnion.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerUnion
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerUnion
create()
Returns a newOVRLayerUnion
instance allocated withBufferUtils
.static OVRLayerUnion.Buffer
create(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withBufferUtils
.static OVRLayerUnion
create(long address)
Returns a newOVRLayerUnion
instance for the specified memory address.static OVRLayerUnion.Buffer
create(long address, int capacity)
Create aOVRLayerUnion.Buffer
instance at the specified memory.static OVRLayerUnion
createSafe(long address)
static OVRLayerUnion.Buffer
createSafe(long address, int capacity)
OVRLayerCube
Cube()
Returns aOVRLayerCube
view of theCube
field.OVRLayerUnion
Cube(java.util.function.Consumer<OVRLayerCube> consumer)
Passes theCube
field to the specifiedConsumer
.OVRLayerUnion
Cube(OVRLayerCube value)
Copies the specifiedOVRLayerCube
to theCube
field.OVRLayerCylinder
Cylinder()
Returns aOVRLayerCylinder
view of theCylinder
field.OVRLayerUnion
Cylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)
Passes theCylinder
field to the specifiedConsumer
.OVRLayerUnion
Cylinder(OVRLayerCylinder value)
Copies the specifiedOVRLayerCylinder
to theCylinder
field.OVRLayerEyeFov
EyeFov()
Returns aOVRLayerEyeFov
view of theEyeFov
field.OVRLayerUnion
EyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)
Passes theEyeFov
field to the specifiedConsumer
.OVRLayerUnion
EyeFov(OVRLayerEyeFov value)
Copies the specifiedOVRLayerEyeFov
to theEyeFov
field.OVRLayerEyeFovDepth
EyeFovDepth()
Returns aOVRLayerEyeFovDepth
view of theEyeFovDepth
field.OVRLayerUnion
EyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)
Passes theEyeFovDepth
field to the specifiedConsumer
.OVRLayerUnion
EyeFovDepth(OVRLayerEyeFovDepth value)
Copies the specifiedOVRLayerEyeFovDepth
to theEyeFovDepth
field.OVRLayerEyeMatrix
EyeMatrix()
Returns aOVRLayerEyeMatrix
view of theEyeMatrix
field.OVRLayerUnion
EyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)
Passes theEyeMatrix
field to the specifiedConsumer
.OVRLayerUnion
EyeMatrix(OVRLayerEyeMatrix value)
Copies the specifiedOVRLayerEyeMatrix
to theEyeMatrix
field.OVRLayerHeader
Header()
Returns aOVRLayerHeader
view of theHeader
field.OVRLayerUnion
Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.OVRLayerUnion
Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.static OVRLayerUnion
malloc()
Returns a newOVRLayerUnion
instance allocated withmemAlloc
.static OVRLayerUnion.Buffer
malloc(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withmemAlloc
.static OVRLayerUnion
mallocStack()
Returns a newOVRLayerUnion
instance allocated on the thread-localMemoryStack
.static OVRLayerUnion.Buffer
mallocStack(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated on the thread-localMemoryStack
.static OVRLayerUnion.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerUnion
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
.OVRLayerEyeFovMultires
Multires()
Returns aOVRLayerEyeFovMultires
view of theMultires
field.OVRLayerUnion
Multires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)
Passes theMultires
field to the specifiedConsumer
.OVRLayerUnion
Multires(OVRLayerEyeFovMultires value)
Copies the specifiedOVRLayerEyeFovMultires
to theMultires
field.static OVRLayerCube
nCube(long struct)
Unsafe version ofCube()
.static void
nCube(long struct, OVRLayerCube value)
Unsafe version ofCube
.static OVRLayerCylinder
nCylinder(long struct)
Unsafe version ofCylinder()
.static void
nCylinder(long struct, OVRLayerCylinder value)
Unsafe version ofCylinder
.static OVRLayerEyeFov
nEyeFov(long struct)
Unsafe version ofEyeFov()
.static void
nEyeFov(long struct, OVRLayerEyeFov value)
Unsafe version ofEyeFov
.static OVRLayerEyeFovDepth
nEyeFovDepth(long struct)
Unsafe version ofEyeFovDepth()
.static void
nEyeFovDepth(long struct, OVRLayerEyeFovDepth value)
Unsafe version ofEyeFovDepth
.static OVRLayerEyeMatrix
nEyeMatrix(long struct)
Unsafe version ofEyeMatrix()
.static void
nEyeMatrix(long struct, OVRLayerEyeMatrix value)
Unsafe version ofEyeMatrix
.static OVRLayerHeader
nHeader(long struct)
Unsafe version ofHeader()
.static void
nHeader(long struct, OVRLayerHeader value)
Unsafe version ofHeader
.static OVRLayerEyeFovMultires
nMultires(long struct)
Unsafe version ofMultires()
.static void
nMultires(long struct, OVRLayerEyeFovMultires value)
Unsafe version ofMultires
.static OVRLayerQuad
nQuad(long struct)
Unsafe version ofQuad()
.static void
nQuad(long struct, OVRLayerQuad value)
Unsafe version ofQuad
.OVRLayerQuad
Quad()
Returns aOVRLayerQuad
view of theQuad
field.OVRLayerUnion
Quad(java.util.function.Consumer<OVRLayerQuad> consumer)
Passes theQuad
field to the specifiedConsumer
.OVRLayerUnion
Quad(OVRLayerQuad value)
Copies the specifiedOVRLayerQuad
to theQuad
field.OVRLayerUnion
set(OVRLayerUnion src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
OVRLayerUnion
public OVRLayerUnion(java.nio.ByteBuffer container)
Creates aOVRLayerUnion
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
Header
public OVRLayerHeader Header()
Returns aOVRLayerHeader
view of theHeader
field.
-
EyeFov
public OVRLayerEyeFov EyeFov()
Returns aOVRLayerEyeFov
view of theEyeFov
field.
-
EyeFovDepth
public OVRLayerEyeFovDepth EyeFovDepth()
Returns aOVRLayerEyeFovDepth
view of theEyeFovDepth
field.
-
EyeMatrix
public OVRLayerEyeMatrix EyeMatrix()
Returns aOVRLayerEyeMatrix
view of theEyeMatrix
field.
-
Multires
public OVRLayerEyeFovMultires Multires()
Returns aOVRLayerEyeFovMultires
view of theMultires
field.
-
Cylinder
public OVRLayerCylinder Cylinder()
Returns aOVRLayerCylinder
view of theCylinder
field.
-
Cube
public OVRLayerCube Cube()
Returns aOVRLayerCube
view of theCube
field.
-
Quad
public OVRLayerQuad Quad()
Returns aOVRLayerQuad
view of theQuad
field.
-
Header
public OVRLayerUnion Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.
-
Header
public OVRLayerUnion Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.
-
EyeFov
public OVRLayerUnion EyeFov(OVRLayerEyeFov value)
Copies the specifiedOVRLayerEyeFov
to theEyeFov
field.
-
EyeFov
public OVRLayerUnion EyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)
Passes theEyeFov
field to the specifiedConsumer
.
-
EyeFovDepth
public OVRLayerUnion EyeFovDepth(OVRLayerEyeFovDepth value)
Copies the specifiedOVRLayerEyeFovDepth
to theEyeFovDepth
field.
-
EyeFovDepth
public OVRLayerUnion EyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)
Passes theEyeFovDepth
field to the specifiedConsumer
.
-
EyeMatrix
public OVRLayerUnion EyeMatrix(OVRLayerEyeMatrix value)
Copies the specifiedOVRLayerEyeMatrix
to theEyeMatrix
field.
-
EyeMatrix
public OVRLayerUnion EyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)
Passes theEyeMatrix
field to the specifiedConsumer
.
-
Multires
public OVRLayerUnion Multires(OVRLayerEyeFovMultires value)
Copies the specifiedOVRLayerEyeFovMultires
to theMultires
field.
-
Multires
public OVRLayerUnion Multires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)
Passes theMultires
field to the specifiedConsumer
.
-
Cylinder
public OVRLayerUnion Cylinder(OVRLayerCylinder value)
Copies the specifiedOVRLayerCylinder
to theCylinder
field.
-
Cylinder
public OVRLayerUnion Cylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)
Passes theCylinder
field to the specifiedConsumer
.
-
Cube
public OVRLayerUnion Cube(OVRLayerCube value)
Copies the specifiedOVRLayerCube
to theCube
field.
-
Cube
public OVRLayerUnion Cube(java.util.function.Consumer<OVRLayerCube> consumer)
Passes theCube
field to the specifiedConsumer
.
-
Quad
public OVRLayerUnion Quad(OVRLayerQuad value)
Copies the specifiedOVRLayerQuad
to theQuad
field.
-
Quad
public OVRLayerUnion Quad(java.util.function.Consumer<OVRLayerQuad> consumer)
Passes theQuad
field 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 newOVRLayerUnion
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRLayerUnion calloc()
Returns a newOVRLayerUnion
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRLayerUnion create()
Returns a newOVRLayerUnion
instance allocated withBufferUtils
.
-
create
public static OVRLayerUnion create(long address)
Returns a newOVRLayerUnion
instance for the specified memory address.
-
createSafe
@Nullable public static OVRLayerUnion createSafe(long address)
-
malloc
public static OVRLayerUnion.Buffer malloc(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRLayerUnion.Buffer calloc(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRLayerUnion.Buffer create(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRLayerUnion.Buffer create(long address, int capacity)
Create aOVRLayerUnion.Buffer
instance 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 newOVRLayerUnion
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRLayerUnion callocStack()
Returns a newOVRLayerUnion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRLayerUnion mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRLayerUnion callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRLayerUnion.Buffer callocStack(int capacity)
Returns a newOVRLayerUnion.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-