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 ofOVRLayerCylinder
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ColorTexture()
Returns the value of theColorTexture
field.OVRLayerCylinder.Buffer
ColorTexture(long value)
Sets the specified value to theColorTexture
field.float
CylinderAngle()
Returns the value of theCylinderAngle
field.OVRLayerCylinder.Buffer
CylinderAngle(float value)
Sets the specified value to theCylinderAngle
field.float
CylinderAspectRatio()
Returns the value of theCylinderAspectRatio
field.OVRLayerCylinder.Buffer
CylinderAspectRatio(float value)
Sets the specified value to theCylinderAspectRatio
field.OVRPosef
CylinderPoseCenter()
Returns aOVRPosef
view of theCylinderPoseCenter
field.OVRLayerCylinder.Buffer
CylinderPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theCylinderPoseCenter
field to the specifiedConsumer
.OVRLayerCylinder.Buffer
CylinderPoseCenter(OVRPosef value)
Copies the specifiedOVRPosef
to theCylinderPoseCenter
field.float
CylinderRadius()
Returns the value of theCylinderRadius
field.OVRLayerCylinder.Buffer
CylinderRadius(float value)
Sets the specified value to theCylinderRadius
field.OVRLayerHeader
Header()
Returns aOVRLayerHeader
view of theHeader
field.OVRLayerCylinder.Buffer
Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.OVRLayerCylinder.Buffer
Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.OVRRecti
Viewport()
Returns aOVRRecti
view of theViewport
field.OVRLayerCylinder.Buffer
Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewport
field to the specifiedConsumer
.OVRLayerCylinder.Buffer
Viewport(OVRRecti value)
Copies the specifiedOVRRecti
to theViewport
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRLayerCylinder.Buffer
instance 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 aOVRLayerHeader
view of theHeader
field.
-
ColorTexture
public long ColorTexture()
Returns the value of theColorTexture
field.
-
CylinderPoseCenter
public OVRPosef CylinderPoseCenter()
Returns aOVRPosef
view of theCylinderPoseCenter
field.
-
CylinderRadius
public float CylinderRadius()
Returns the value of theCylinderRadius
field.
-
CylinderAngle
public float CylinderAngle()
Returns the value of theCylinderAngle
field.
-
CylinderAspectRatio
public float CylinderAspectRatio()
Returns the value of theCylinderAspectRatio
field.
-
Header
public OVRLayerCylinder.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.
-
Header
public OVRLayerCylinder.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.
-
ColorTexture
public OVRLayerCylinder.Buffer ColorTexture(long value)
Sets the specified value to theColorTexture
field.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRecti
to theViewport
field.
-
Viewport
public OVRLayerCylinder.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewport
field to the specifiedConsumer
.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(OVRPosef value)
Copies the specifiedOVRPosef
to theCylinderPoseCenter
field.
-
CylinderPoseCenter
public OVRLayerCylinder.Buffer CylinderPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theCylinderPoseCenter
field to the specifiedConsumer
.
-
CylinderRadius
public OVRLayerCylinder.Buffer CylinderRadius(float value)
Sets the specified value to theCylinderRadius
field.
-
CylinderAngle
public OVRLayerCylinder.Buffer CylinderAngle(float value)
Sets the specified value to theCylinderAngle
field.
-
CylinderAspectRatio
public OVRLayerCylinder.Buffer CylinderAspectRatio(float value)
Sets the specified value to theCylinderAspectRatio
field.
-
-