Package org.lwjgl.openxr
Class XrCompositionLayerCubeKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrCompositionLayerCubeKHR,XrCompositionLayerCubeKHR.Buffer>
-
- org.lwjgl.openxr.XrCompositionLayerCubeKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrCompositionLayerCubeKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrCompositionLayerCubeKHR
public static class XrCompositionLayerCubeKHR.Buffer extends org.lwjgl.system.StructBuffer<XrCompositionLayerCubeKHR,XrCompositionLayerCubeKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrCompositionLayerCubeKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrCompositionLayerCubeKHR.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 byXrCompositionLayerCubeKHR.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
XrCompositionLayerCubeKHR.type()field.
-
next
public long next()
- Returns:
- the value of the
XrCompositionLayerCubeKHR.next()field.
-
layerFlags
public long layerFlags()
- Returns:
- the value of the
XrCompositionLayerCubeKHR.layerFlags()field.
-
space
public long space()
- Returns:
- the value of the
XrCompositionLayerCubeKHR.space()field.
-
eyeVisibility
public int eyeVisibility()
- Returns:
- the value of the
eyeVisibilityfield.
-
swapchain
public long swapchain()
- Returns:
- the value of the
XrCompositionLayerCubeKHR.swapchain()field.
-
imageArrayIndex
public int imageArrayIndex()
- Returns:
- the value of the
XrCompositionLayerCubeKHR.imageArrayIndex()field.
-
orientation
public XrQuaternionf orientation()
- Returns:
- a
XrQuaternionfview of theXrCompositionLayerCubeKHR.orientation()field.
-
type
public XrCompositionLayerCubeKHR.Buffer type(int value)
Sets the specified value to theXrCompositionLayerCubeKHR.type()field.
-
type$Default
public XrCompositionLayerCubeKHR.Buffer type$Default()
Sets theTYPE_COMPOSITION_LAYER_CUBE_KHRvalue to theXrCompositionLayerCubeKHR.type()field.
-
next
public XrCompositionLayerCubeKHR.Buffer next(long value)
Sets the specified value to theXrCompositionLayerCubeKHR.next()field.
-
layerFlags
public XrCompositionLayerCubeKHR.Buffer layerFlags(long value)
Sets the specified value to theXrCompositionLayerCubeKHR.layerFlags()field.
-
space
public XrCompositionLayerCubeKHR.Buffer space(XrSpace value)
Sets the specified value to theXrCompositionLayerCubeKHR.space()field.
-
eyeVisibility
public XrCompositionLayerCubeKHR.Buffer eyeVisibility(int value)
Sets the specified value to theeyeVisibilityfield.
-
swapchain
public XrCompositionLayerCubeKHR.Buffer swapchain(XrSwapchain value)
Sets the specified value to theXrCompositionLayerCubeKHR.swapchain()field.
-
imageArrayIndex
public XrCompositionLayerCubeKHR.Buffer imageArrayIndex(int value)
Sets the specified value to theXrCompositionLayerCubeKHR.imageArrayIndex()field.
-
orientation
public XrCompositionLayerCubeKHR.Buffer orientation(XrQuaternionf value)
Copies the specifiedXrQuaternionfto theXrCompositionLayerCubeKHR.orientation()field.
-
orientation
public XrCompositionLayerCubeKHR.Buffer orientation(java.util.function.Consumer<XrQuaternionf> consumer)
Passes theXrCompositionLayerCubeKHR.orientation()field to the specifiedConsumer.
-
-