Package org.lwjgl.ovr
Class OVRLayerQuad.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRLayerQuad,OVRLayerQuad.Buffer>
-
- org.lwjgl.ovr.OVRLayerQuad.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<OVRLayerQuad>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- OVRLayerQuad
public static class OVRLayerQuad.Buffer extends org.lwjgl.system.StructBuffer<OVRLayerQuad,OVRLayerQuad.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRLayerQuad
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ColorTexture()
Returns the value of theColorTexture
field.OVRLayerQuad.Buffer
ColorTexture(long value)
Sets the specified value to theColorTexture
field.OVRLayerHeader
Header()
Returns aOVRLayerHeader
view of theHeader
field.OVRLayerQuad.Buffer
Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.OVRLayerQuad.Buffer
Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.OVRPosef
QuadPoseCenter()
Returns aOVRPosef
view of theQuadPoseCenter
field.OVRLayerQuad.Buffer
QuadPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theQuadPoseCenter
field to the specifiedConsumer
.OVRLayerQuad.Buffer
QuadPoseCenter(OVRPosef value)
Copies the specifiedOVRPosef
to theQuadPoseCenter
field.OVRVector2f
QuadSize()
Returns aOVRVector2f
view of theQuadSize
field.OVRLayerQuad.Buffer
QuadSize(java.util.function.Consumer<OVRVector2f> consumer)
Passes theQuadSize
field to the specifiedConsumer
.OVRLayerQuad.Buffer
QuadSize(OVRVector2f value)
Copies the specifiedOVRVector2f
to theQuadSize
field.OVRRecti
Viewport()
Returns aOVRRecti
view of theViewport
field.OVRLayerQuad.Buffer
Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewport
field to the specifiedConsumer
.OVRLayerQuad.Buffer
Viewport(OVRRecti value)
Copies the specifiedOVRRecti
to theViewport
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRLayerQuad.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 byOVRLayerQuad.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.
-
QuadPoseCenter
public OVRPosef QuadPoseCenter()
Returns aOVRPosef
view of theQuadPoseCenter
field.
-
QuadSize
public OVRVector2f QuadSize()
Returns aOVRVector2f
view of theQuadSize
field.
-
Header
public OVRLayerQuad.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeader
to theHeader
field.
-
Header
public OVRLayerQuad.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeader
field to the specifiedConsumer
.
-
ColorTexture
public OVRLayerQuad.Buffer ColorTexture(long value)
Sets the specified value to theColorTexture
field.
-
Viewport
public OVRLayerQuad.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRecti
to theViewport
field.
-
Viewport
public OVRLayerQuad.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewport
field to the specifiedConsumer
.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(OVRPosef value)
Copies the specifiedOVRPosef
to theQuadPoseCenter
field.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theQuadPoseCenter
field to the specifiedConsumer
.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(OVRVector2f value)
Copies the specifiedOVRVector2f
to theQuadSize
field.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(java.util.function.Consumer<OVRVector2f> consumer)
Passes theQuadSize
field to the specifiedConsumer
.
-
-