Package org.lwjgl.openxr
Class XrColor4f.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrColor4f,XrColor4f.Buffer>
-
- org.lwjgl.openxr.XrColor4f.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrColor4f>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrColor4f
public static class XrColor4f.Buffer extends org.lwjgl.system.StructBuffer<XrColor4f,XrColor4f.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrColor4fstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floata()XrColor4f.Buffera(float value)Sets the specified value to theXrColor4f.a()field.floatb()XrColor4f.Bufferb(float value)Sets the specified value to theXrColor4f.b()field.floatg()XrColor4f.Bufferg(float value)Sets the specified value to theXrColor4f.g()field.floatr()XrColor4f.Bufferr(float value)Sets the specified value to theXrColor4f.r()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrColor4f.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 byXrColor4f.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
-
r
public float r()
- Returns:
- the value of the
XrColor4f.r()field.
-
g
public float g()
- Returns:
- the value of the
XrColor4f.g()field.
-
b
public float b()
- Returns:
- the value of the
XrColor4f.b()field.
-
a
public float a()
- Returns:
- the value of the
XrColor4f.a()field.
-
r
public XrColor4f.Buffer r(float value)
Sets the specified value to theXrColor4f.r()field.
-
g
public XrColor4f.Buffer g(float value)
Sets the specified value to theXrColor4f.g()field.
-
b
public XrColor4f.Buffer b(float value)
Sets the specified value to theXrColor4f.b()field.
-
a
public XrColor4f.Buffer a(float value)
Sets the specified value to theXrColor4f.a()field.
-
-