Package org.lwjgl.openxr
Class XrSwapchainSubImage.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSwapchainSubImage,XrSwapchainSubImage.Buffer>
-
- org.lwjgl.openxr.XrSwapchainSubImage.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSwapchainSubImage>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSwapchainSubImage
public static class XrSwapchainSubImage.Buffer extends org.lwjgl.system.StructBuffer<XrSwapchainSubImage,XrSwapchainSubImage.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSwapchainSubImagestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intimageArrayIndex()XrSwapchainSubImage.BufferimageArrayIndex(int value)Sets the specified value to theXrSwapchainSubImage.imageArrayIndex()field.XrRect2DiimageRect()XrSwapchainSubImage.BufferimageRect(java.util.function.Consumer<XrRect2Di> consumer)Passes theXrSwapchainSubImage.imageRect()field to the specifiedConsumer.XrSwapchainSubImage.BufferimageRect(XrRect2Di value)Copies the specifiedXrRect2Dito theXrSwapchainSubImage.imageRect()field.longswapchain()XrSwapchainSubImage.Bufferswapchain(XrSwapchain value)Sets the specified value to theXrSwapchainSubImage.swapchain()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSwapchainSubImage.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 byXrSwapchainSubImage.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
-
swapchain
public long swapchain()
- Returns:
- the value of the
XrSwapchainSubImage.swapchain()field.
-
imageRect
public XrRect2Di imageRect()
- Returns:
- a
XrRect2Diview of theXrSwapchainSubImage.imageRect()field.
-
imageArrayIndex
public int imageArrayIndex()
- Returns:
- the value of the
XrSwapchainSubImage.imageArrayIndex()field.
-
swapchain
public XrSwapchainSubImage.Buffer swapchain(XrSwapchain value)
Sets the specified value to theXrSwapchainSubImage.swapchain()field.
-
imageRect
public XrSwapchainSubImage.Buffer imageRect(XrRect2Di value)
Copies the specifiedXrRect2Dito theXrSwapchainSubImage.imageRect()field.
-
imageRect
public XrSwapchainSubImage.Buffer imageRect(java.util.function.Consumer<XrRect2Di> consumer)
Passes theXrSwapchainSubImage.imageRect()field to the specifiedConsumer.
-
imageArrayIndex
public XrSwapchainSubImage.Buffer imageArrayIndex(int value)
Sets the specified value to theXrSwapchainSubImage.imageArrayIndex()field.
-
-