Package org.lwjgl.ovr
Class OVRLayerUnion.Buffer
- java.lang.Object
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRLayerUnion,OVRLayerUnion.Buffer>
-
- org.lwjgl.ovr.OVRLayerUnion.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OVRLayerUnion>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OVRLayerUnion
public static class OVRLayerUnion.Buffer extends org.lwjgl.system.StructBuffer<OVRLayerUnion,OVRLayerUnion.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRLayerUnionstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newOVRLayerUnion.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OVRLayerCubeCube()Returns aOVRLayerCubeview of theCubefield.OVRLayerUnion.BufferCube(java.util.function.Consumer<OVRLayerCube> consumer)Passes theCubefield to the specifiedConsumer.OVRLayerUnion.BufferCube(OVRLayerCube value)Copies the specifiedOVRLayerCubeto theCubefield.OVRLayerCylinderCylinder()Returns aOVRLayerCylinderview of theCylinderfield.OVRLayerUnion.BufferCylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)Passes theCylinderfield to the specifiedConsumer.OVRLayerUnion.BufferCylinder(OVRLayerCylinder value)Copies the specifiedOVRLayerCylinderto theCylinderfield.OVRLayerEyeFovEyeFov()Returns aOVRLayerEyeFovview of theEyeFovfield.OVRLayerUnion.BufferEyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)Passes theEyeFovfield to the specifiedConsumer.OVRLayerUnion.BufferEyeFov(OVRLayerEyeFov value)Copies the specifiedOVRLayerEyeFovto theEyeFovfield.OVRLayerEyeFovDepthEyeFovDepth()Returns aOVRLayerEyeFovDepthview of theEyeFovDepthfield.OVRLayerUnion.BufferEyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)Passes theEyeFovDepthfield to the specifiedConsumer.OVRLayerUnion.BufferEyeFovDepth(OVRLayerEyeFovDepth value)Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield.OVRLayerEyeMatrixEyeMatrix()Returns aOVRLayerEyeMatrixview of theEyeMatrixfield.OVRLayerUnion.BufferEyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)Passes theEyeMatrixfield to the specifiedConsumer.OVRLayerUnion.BufferEyeMatrix(OVRLayerEyeMatrix value)Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield.OVRLayerHeaderHeader()Returns aOVRLayerHeaderview of theHeaderfield.OVRLayerUnion.BufferHeader(java.util.function.Consumer<OVRLayerHeader> consumer)Passes theHeaderfield to the specifiedConsumer.OVRLayerUnion.BufferHeader(OVRLayerHeader value)Copies the specifiedOVRLayerHeaderto theHeaderfield.OVRLayerEyeFovMultiresMultires()Returns aOVRLayerEyeFovMultiresview of theMultiresfield.OVRLayerUnion.BufferMultires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)Passes theMultiresfield to the specifiedConsumer.OVRLayerUnion.BufferMultires(OVRLayerEyeFovMultires value)Copies the specifiedOVRLayerEyeFovMultiresto theMultiresfield.OVRLayerQuadQuad()Returns aOVRLayerQuadview of theQuadfield.OVRLayerUnion.BufferQuad(java.util.function.Consumer<OVRLayerQuad> consumer)Passes theQuadfield to the specifiedConsumer.OVRLayerUnion.BufferQuad(OVRLayerQuad value)Copies the specifiedOVRLayerQuadto theQuadfield.intsizeof()-
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
-
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRLayerUnion.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byOVRLayerUnion.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.CustomBuffer<OVRLayerUnion.Buffer>
-
Header
public OVRLayerHeader Header()
Returns aOVRLayerHeaderview of theHeaderfield.
-
Header
public OVRLayerUnion.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeaderfield to the specifiedConsumer.
-
EyeFov
public OVRLayerEyeFov EyeFov()
Returns aOVRLayerEyeFovview of theEyeFovfield.
-
EyeFov
public OVRLayerUnion.Buffer EyeFov(java.util.function.Consumer<OVRLayerEyeFov> consumer)
Passes theEyeFovfield to the specifiedConsumer.
-
EyeFovDepth
public OVRLayerEyeFovDepth EyeFovDepth()
Returns aOVRLayerEyeFovDepthview of theEyeFovDepthfield.
-
EyeFovDepth
public OVRLayerUnion.Buffer EyeFovDepth(java.util.function.Consumer<OVRLayerEyeFovDepth> consumer)
Passes theEyeFovDepthfield to the specifiedConsumer.
-
EyeMatrix
public OVRLayerEyeMatrix EyeMatrix()
Returns aOVRLayerEyeMatrixview of theEyeMatrixfield.
-
EyeMatrix
public OVRLayerUnion.Buffer EyeMatrix(java.util.function.Consumer<OVRLayerEyeMatrix> consumer)
Passes theEyeMatrixfield to the specifiedConsumer.
-
Multires
public OVRLayerEyeFovMultires Multires()
Returns aOVRLayerEyeFovMultiresview of theMultiresfield.
-
Multires
public OVRLayerUnion.Buffer Multires(java.util.function.Consumer<OVRLayerEyeFovMultires> consumer)
Passes theMultiresfield to the specifiedConsumer.
-
Cylinder
public OVRLayerCylinder Cylinder()
Returns aOVRLayerCylinderview of theCylinderfield.
-
Cylinder
public OVRLayerUnion.Buffer Cylinder(java.util.function.Consumer<OVRLayerCylinder> consumer)
Passes theCylinderfield to the specifiedConsumer.
-
Cube
public OVRLayerCube Cube()
Returns aOVRLayerCubeview of theCubefield.
-
Cube
public OVRLayerUnion.Buffer Cube(java.util.function.Consumer<OVRLayerCube> consumer)
Passes theCubefield to the specifiedConsumer.
-
Quad
public OVRLayerQuad Quad()
Returns aOVRLayerQuadview of theQuadfield.
-
Quad
public OVRLayerUnion.Buffer Quad(java.util.function.Consumer<OVRLayerQuad> consumer)
Passes theQuadfield to the specifiedConsumer.
-
Header
public OVRLayerUnion.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theHeaderfield.
-
EyeFov
public OVRLayerUnion.Buffer EyeFov(OVRLayerEyeFov value)
Copies the specifiedOVRLayerEyeFovto theEyeFovfield.
-
EyeFovDepth
public OVRLayerUnion.Buffer EyeFovDepth(OVRLayerEyeFovDepth value)
Copies the specifiedOVRLayerEyeFovDepthto theEyeFovDepthfield.
-
EyeMatrix
public OVRLayerUnion.Buffer EyeMatrix(OVRLayerEyeMatrix value)
Copies the specifiedOVRLayerEyeMatrixto theEyeMatrixfield.
-
Multires
public OVRLayerUnion.Buffer Multires(OVRLayerEyeFovMultires value)
Copies the specifiedOVRLayerEyeFovMultiresto theMultiresfield.
-
Cylinder
public OVRLayerUnion.Buffer Cylinder(OVRLayerCylinder value)
Copies the specifiedOVRLayerCylinderto theCylinderfield.
-
Cube
public OVRLayerUnion.Buffer Cube(OVRLayerCube value)
Copies the specifiedOVRLayerCubeto theCubefield.
-
Quad
public OVRLayerUnion.Buffer Quad(OVRLayerQuad value)
Copies the specifiedOVRLayerQuadto theQuadfield.
-
-