Package org.lwjgl.ovr
Class OVRLayerCylinder.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRLayerCylinder,OVRLayerCylinder.Buffer>
-
- org.lwjgl.ovr.OVRLayerCylinder.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OVRLayerCylinder>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OVRLayerCylinder
public static class OVRLayerCylinder.Buffer extends org.lwjgl.system.StructBuffer<OVRLayerCylinder,OVRLayerCylinder.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRLayerCylinderstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRLayerCylinder.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 byOVRLayerCylinder.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
-
Header
public OVRLayerHeader Header()
- Returns:
- a
OVRLayerHeaderview of theOVRLayerCylinder.Header()field.
-
ColorTexture
public long ColorTexture()
- Returns:
- the value of the
OVRLayerCylinder.ColorTexture()field.
-
Viewport
public OVRRecti Viewport()
- Returns:
- a
OVRRectiview of theOVRLayerCylinder.Viewport()field.
-
CylinderPoseCenter
public OVRPosef CylinderPoseCenter()
- Returns:
- a
OVRPosefview of theOVRLayerCylinder.CylinderPoseCenter()field.
-
CylinderRadius
public float CylinderRadius()
- Returns:
- the value of the
OVRLayerCylinder.CylinderRadius()field.
-
CylinderAngle
public float CylinderAngle()
- Returns:
- the value of the
OVRLayerCylinder.CylinderAngle()field.
-
CylinderAspectRatio
public float CylinderAspectRatio()
- Returns:
- the value of the
OVRLayerCylinder.CylinderAspectRatio()field.
-
Header
public OVRLayerCylinder.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theOVRLayerCylinder.Header()field.
-
Header
public OVRLayerCylinder.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theOVRLayerCylinder.Header()field to the specifiedConsumer.
-
ColorTexture
public OVRLayerCylinder.Buffer ColorTexture(long value)
Sets the specified value to theOVRLayerCylinder.ColorTexture()field.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRectito theOVRLayerCylinder.Viewport()field.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theOVRLayerCylinder.Viewport()field to the specifiedConsumer.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(OVRPosef value)
Copies the specifiedOVRPosefto theOVRLayerCylinder.CylinderPoseCenter()field.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theOVRLayerCylinder.CylinderPoseCenter()field to the specifiedConsumer.
-
CylinderRadius
public OVRLayerCylinder.Buffer CylinderRadius(float value)
Sets the specified value to theOVRLayerCylinder.CylinderRadius()field.
-
CylinderAngle
public OVRLayerCylinder.Buffer CylinderAngle(float value)
Sets the specified value to theOVRLayerCylinder.CylinderAngle()field.
-
CylinderAspectRatio
public OVRLayerCylinder.Buffer CylinderAspectRatio(float value)
Sets the specified value to theOVRLayerCylinder.CylinderAspectRatio()field.
-
-