Package org.lwjgl.openxr
Class XrCompositionLayerColorScaleBiasKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrCompositionLayerColorScaleBiasKHR,XrCompositionLayerColorScaleBiasKHR.Buffer>
-
- org.lwjgl.openxr.XrCompositionLayerColorScaleBiasKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrCompositionLayerColorScaleBiasKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrCompositionLayerColorScaleBiasKHR
public static class XrCompositionLayerColorScaleBiasKHR.Buffer extends org.lwjgl.system.StructBuffer<XrCompositionLayerColorScaleBiasKHR,XrCompositionLayerColorScaleBiasKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrCompositionLayerColorScaleBiasKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrCompositionLayerColorScaleBiasKHR.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 byXrCompositionLayerColorScaleBiasKHR.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
-
type
public int type()
- Returns:
- the value of the
XrCompositionLayerColorScaleBiasKHR.type()field.
-
next
public long next()
- Returns:
- the value of the
XrCompositionLayerColorScaleBiasKHR.next()field.
-
colorScale
public XrColor4f colorScale()
- Returns:
- a
XrColor4fview of theXrCompositionLayerColorScaleBiasKHR.colorScale()field.
-
colorBias
public XrColor4f colorBias()
- Returns:
- a
XrColor4fview of theXrCompositionLayerColorScaleBiasKHR.colorBias()field.
-
type
public XrCompositionLayerColorScaleBiasKHR.Buffer type(int value)
Sets the specified value to theXrCompositionLayerColorScaleBiasKHR.type()field.
-
type$Default
public XrCompositionLayerColorScaleBiasKHR.Buffer type$Default()
Sets theTYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHRvalue to theXrCompositionLayerColorScaleBiasKHR.type()field.
-
next
public XrCompositionLayerColorScaleBiasKHR.Buffer next(long value)
Sets the specified value to theXrCompositionLayerColorScaleBiasKHR.next()field.
-
colorScale
public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(XrColor4f value)
Copies the specifiedXrColor4fto theXrCompositionLayerColorScaleBiasKHR.colorScale()field.
-
colorScale
public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(java.util.function.Consumer<XrColor4f> consumer)
Passes theXrCompositionLayerColorScaleBiasKHR.colorScale()field to the specifiedConsumer.
-
colorBias
public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(XrColor4f value)
Copies the specifiedXrColor4fto theXrCompositionLayerColorScaleBiasKHR.colorBias()field.
-
colorBias
public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(java.util.function.Consumer<XrColor4f> consumer)
Passes theXrCompositionLayerColorScaleBiasKHR.colorBias()field to the specifiedConsumer.
-
-