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 ofOVRLayerQuadstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longColorTexture()Returns the value of theColorTexturefield.OVRLayerQuad.BufferColorTexture(long value)Sets the specified value to theColorTexturefield.OVRLayerHeaderHeader()Returns aOVRLayerHeaderview of theHeaderfield.OVRLayerQuad.BufferHeader(java.util.function.Consumer<OVRLayerHeader> consumer)Passes theHeaderfield to the specifiedConsumer.OVRLayerQuad.BufferHeader(OVRLayerHeader value)Copies the specifiedOVRLayerHeaderto theHeaderfield.OVRPosefQuadPoseCenter()Returns aOVRPosefview of theQuadPoseCenterfield.OVRLayerQuad.BufferQuadPoseCenter(java.util.function.Consumer<OVRPosef> consumer)Passes theQuadPoseCenterfield to the specifiedConsumer.OVRLayerQuad.BufferQuadPoseCenter(OVRPosef value)Copies the specifiedOVRPosefto theQuadPoseCenterfield.OVRVector2fQuadSize()Returns aOVRVector2fview of theQuadSizefield.OVRLayerQuad.BufferQuadSize(java.util.function.Consumer<OVRVector2f> consumer)Passes theQuadSizefield to the specifiedConsumer.OVRLayerQuad.BufferQuadSize(OVRVector2f value)Copies the specifiedOVRVector2fto theQuadSizefield.OVRRectiViewport()Returns aOVRRectiview of theViewportfield.OVRLayerQuad.BufferViewport(java.util.function.Consumer<OVRRecti> consumer)Passes theViewportfield to the specifiedConsumer.OVRLayerQuad.BufferViewport(OVRRecti value)Copies the specifiedOVRRectito theViewportfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRLayerQuad.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 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 aOVRLayerHeaderview of theHeaderfield.
-
ColorTexture
public long ColorTexture()
Returns the value of theColorTexturefield.
-
QuadPoseCenter
public OVRPosef QuadPoseCenter()
Returns aOVRPosefview of theQuadPoseCenterfield.
-
QuadSize
public OVRVector2f QuadSize()
Returns aOVRVector2fview of theQuadSizefield.
-
Header
public OVRLayerQuad.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theHeaderfield.
-
Header
public OVRLayerQuad.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theHeaderfield to the specifiedConsumer.
-
ColorTexture
public OVRLayerQuad.Buffer ColorTexture(long value)
Sets the specified value to theColorTexturefield.
-
Viewport
public OVRLayerQuad.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRectito theViewportfield.
-
Viewport
public OVRLayerQuad.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theViewportfield to the specifiedConsumer.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(OVRPosef value)
Copies the specifiedOVRPosefto theQuadPoseCenterfield.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theQuadPoseCenterfield to the specifiedConsumer.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(OVRVector2f value)
Copies the specifiedOVRVector2fto theQuadSizefield.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(java.util.function.Consumer<OVRVector2f> consumer)
Passes theQuadSizefield to the specifiedConsumer.
-
-