Package org.lwjgl.openxr
Class XrScenePlaneMSFT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrScenePlaneMSFT,XrScenePlaneMSFT.Buffer>
-
- org.lwjgl.openxr.XrScenePlaneMSFT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrScenePlaneMSFT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrScenePlaneMSFT
public static class XrScenePlaneMSFT.Buffer extends org.lwjgl.system.StructBuffer<XrScenePlaneMSFT,XrScenePlaneMSFT.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrScenePlaneMSFTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignment()XrScenePlaneMSFT.Bufferalignment(int value)Sets the specified value to theXrScenePlaneMSFT.alignment()field.longmeshBufferId()XrScenePlaneMSFT.BuffermeshBufferId(long value)Sets the specified value to theXrScenePlaneMSFT.meshBufferId()field.XrExtent2Dfsize()XrScenePlaneMSFT.Buffersize(java.util.function.Consumer<XrExtent2Df> consumer)Passes theXrScenePlaneMSFT.size()field to the specifiedConsumer.XrScenePlaneMSFT.Buffersize(XrExtent2Df value)Copies the specifiedXrExtent2Dfto theXrScenePlaneMSFT.size()field.booleansupportsIndicesUint16()XrScenePlaneMSFT.BuffersupportsIndicesUint16(boolean value)Sets the specified value to theXrScenePlaneMSFT.supportsIndicesUint16()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrScenePlaneMSFT.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 byXrScenePlaneMSFT.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
-
alignment
public int alignment()
- Returns:
- the value of the
XrScenePlaneMSFT.alignment()field.
-
size
public XrExtent2Df size()
- Returns:
- a
XrExtent2Dfview of theXrScenePlaneMSFT.size()field.
-
meshBufferId
public long meshBufferId()
- Returns:
- the value of the
XrScenePlaneMSFT.meshBufferId()field.
-
supportsIndicesUint16
public boolean supportsIndicesUint16()
- Returns:
- the value of the
XrScenePlaneMSFT.supportsIndicesUint16()field.
-
alignment
public XrScenePlaneMSFT.Buffer alignment(int value)
Sets the specified value to theXrScenePlaneMSFT.alignment()field.
-
size
public XrScenePlaneMSFT.Buffer size(XrExtent2Df value)
Copies the specifiedXrExtent2Dfto theXrScenePlaneMSFT.size()field.
-
size
public XrScenePlaneMSFT.Buffer size(java.util.function.Consumer<XrExtent2Df> consumer)
Passes theXrScenePlaneMSFT.size()field to the specifiedConsumer.
-
meshBufferId
public XrScenePlaneMSFT.Buffer meshBufferId(long value)
Sets the specified value to theXrScenePlaneMSFT.meshBufferId()field.
-
supportsIndicesUint16
public XrScenePlaneMSFT.Buffer supportsIndicesUint16(boolean value)
Sets the specified value to theXrScenePlaneMSFT.supportsIndicesUint16()field.
-
-