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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longColorTexture()Returns the value of theColorTexturefield.OVRLayerCylinder.BufferColorTexture(long value)Sets the specified value to theColorTexturefield.floatCylinderAngle()Returns the value of theCylinderAnglefield.OVRLayerCylinder.BufferCylinderAngle(float value)Sets the specified value to theCylinderAnglefield.floatCylinderAspectRatio()Returns the value of theCylinderAspectRatiofield.OVRLayerCylinder.BufferCylinderAspectRatio(float value)Sets the specified value to theCylinderAspectRatiofield.OVRPosefCylinderPoseCenter()Returns aOVRPosefview of theCylinderPoseCenterfield.OVRLayerCylinder.BufferCylinderPoseCenter(java.util.function.Consumer<OVRPosef> consumer)Passes theCylinderPoseCenterfield to the specifiedConsumer.OVRLayerCylinder.BufferCylinderPoseCenter(OVRPosef value)Copies the specifiedOVRPosefto theCylinderPoseCenterfield.floatCylinderRadius()Returns the value of theCylinderRadiusfield.OVRLayerCylinder.BufferCylinderRadius(float value)Sets the specified value to theCylinderRadiusfield.OVRLayerHeaderHeader()Returns aOVRLayerHeaderview of theHeaderfield.OVRLayerCylinder.BufferHeader(java.util.function.Consumer<OVRLayerHeader> consumer)Passes theHeaderfield to the specifiedConsumer.OVRLayerCylinder.BufferHeader(OVRLayerHeader value)Copies the specifiedOVRLayerHeaderto theHeaderfield.OVRRectiViewport()Returns aOVRRectiview of theViewportfield.OVRLayerCylinder.BufferViewport(java.util.function.Consumer<OVRRecti> consumer)Passes theViewportfield to the specifiedConsumer.OVRLayerCylinder.BufferViewport(OVRRecti value)Copies the specifiedOVRRectito theViewportfield.
-
-
-
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 aOVRLayerHeaderview of theHeaderfield.
-
ColorTexture
public long ColorTexture()
Returns the value of theColorTexturefield.
-
CylinderPoseCenter
public OVRPosef CylinderPoseCenter()
Returns aOVRPosefview of theCylinderPoseCenterfield.
-
CylinderRadius
public float CylinderRadius()
Returns the value of theCylinderRadiusfield.
-
CylinderAngle
public float CylinderAngle()
Returns the value of theCylinderAnglefield.
-
CylinderAspectRatio
public float CylinderAspectRatio()
Returns the value of theCylinderAspectRatiofield.
-
Header
public OVRLayerCylinder.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theHeaderfield.
-
Header
public OVRLayerCylinder.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeaderfield to the specifiedConsumer.
-
ColorTexture
public OVRLayerCylinder.Buffer ColorTexture(long value)
Sets the specified value to theColorTexturefield.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRectito theViewportfield.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewportfield to the specifiedConsumer.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(OVRPosef value)
Copies the specifiedOVRPosefto theCylinderPoseCenterfield.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theCylinderPoseCenterfield to the specifiedConsumer.
-
CylinderRadius
public OVRLayerCylinder.Buffer CylinderRadius(float value)
Sets the specified value to theCylinderRadiusfield.
-
CylinderAngle
public OVRLayerCylinder.Buffer CylinderAngle(float value)
Sets the specified value to theCylinderAnglefield.
-
CylinderAspectRatio
public OVRLayerCylinder.Buffer CylinderAspectRatio(float value)
Sets the specified value to theCylinderAspectRatiofield.
-
-