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
-
-
-
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:
- a
OVRLayerHeaderview of theOVRLayerQuad.Header()field.
-
ColorTexture
public long ColorTexture()
- Returns:
- the value of the
OVRLayerQuad.ColorTexture()field.
-
Viewport
public OVRRecti Viewport()
- Returns:
- a
OVRRectiview of theOVRLayerQuad.Viewport()field.
-
QuadPoseCenter
public OVRPosef QuadPoseCenter()
- Returns:
- a
OVRPosefview of theOVRLayerQuad.QuadPoseCenter()field.
-
QuadSize
public OVRVector2f QuadSize()
- Returns:
- a
OVRVector2fview of theOVRLayerQuad.QuadSize()field.
-
Header
public OVRLayerQuad.Buffer Header(OVRLayerHeader value)
Copies the specifiedOVRLayerHeaderto theOVRLayerQuad.Header()field.
-
Header
public OVRLayerQuad.Buffer Header(java.util.function.Consumer<OVRLayerHeader> consumer)
Passes theOVRLayerQuad.Header()field to the specifiedConsumer.
-
ColorTexture
public OVRLayerQuad.Buffer ColorTexture(long value)
Sets the specified value to theOVRLayerQuad.ColorTexture()field.
-
Viewport
public OVRLayerQuad.Buffer Viewport(OVRRecti value)
Copies the specifiedOVRRectito theOVRLayerQuad.Viewport()field.
-
Viewport
public OVRLayerQuad.Buffer Viewport(java.util.function.Consumer<OVRRecti> consumer)
Passes theOVRLayerQuad.Viewport()field to the specifiedConsumer.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(OVRPosef value)
Copies the specifiedOVRPosefto theOVRLayerQuad.QuadPoseCenter()field.
-
QuadPoseCenter
public OVRLayerQuad.Buffer QuadPoseCenter(java.util.function.Consumer<OVRPosef> consumer)
Passes theOVRLayerQuad.QuadPoseCenter()field to the specifiedConsumer.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(OVRVector2f value)
Copies the specifiedOVRVector2fto theOVRLayerQuad.QuadSize()field.
-
QuadSize
public OVRLayerQuad.Buffer QuadSize(java.util.function.Consumer<OVRVector2f> consumer)
Passes theOVRLayerQuad.QuadSize()field to the specifiedConsumer.
-
-