Package org.lwjgl.openxr
Class XrSceneComponentMSFT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSceneComponentMSFT,XrSceneComponentMSFT.Buffer>
-
- org.lwjgl.openxr.XrSceneComponentMSFT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSceneComponentMSFT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSceneComponentMSFT
public static class XrSceneComponentMSFT.Buffer extends org.lwjgl.system.StructBuffer<XrSceneComponentMSFT,XrSceneComponentMSFT.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSceneComponentMSFTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomponentType()XrSceneComponentMSFT.BuffercomponentType(int value)Sets the specified value to theXrSceneComponentMSFT.componentType()field.XrUuidMSFTid()XrSceneComponentMSFT.Bufferid(java.util.function.Consumer<XrUuidMSFT> consumer)Passes theXrSceneComponentMSFT.id()field to the specifiedConsumer.XrSceneComponentMSFT.Bufferid(XrUuidMSFT value)Copies the specifiedXrUuidMSFTto theXrSceneComponentMSFT.id()field.XrUuidMSFTparentId()XrSceneComponentMSFT.BufferparentId(java.util.function.Consumer<XrUuidMSFT> consumer)Passes theXrSceneComponentMSFT.parentId()field to the specifiedConsumer.XrSceneComponentMSFT.BufferparentId(XrUuidMSFT value)Copies the specifiedXrUuidMSFTto theXrSceneComponentMSFT.parentId()field.longupdateTime()XrSceneComponentMSFT.BufferupdateTime(long value)Sets the specified value to theXrSceneComponentMSFT.updateTime()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSceneComponentMSFT.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 byXrSceneComponentMSFT.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
-
componentType
public int componentType()
- Returns:
- the value of the
XrSceneComponentMSFT.componentType()field.
-
id
public XrUuidMSFT id()
- Returns:
- a
XrUuidMSFTview of theXrSceneComponentMSFT.id()field.
-
parentId
public XrUuidMSFT parentId()
- Returns:
- a
XrUuidMSFTview of theXrSceneComponentMSFT.parentId()field.
-
updateTime
public long updateTime()
- Returns:
- the value of the
XrSceneComponentMSFT.updateTime()field.
-
componentType
public XrSceneComponentMSFT.Buffer componentType(int value)
Sets the specified value to theXrSceneComponentMSFT.componentType()field.
-
id
public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value)
Copies the specifiedXrUuidMSFTto theXrSceneComponentMSFT.id()field.
-
id
public XrSceneComponentMSFT.Buffer id(java.util.function.Consumer<XrUuidMSFT> consumer)
Passes theXrSceneComponentMSFT.id()field to the specifiedConsumer.
-
parentId
public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value)
Copies the specifiedXrUuidMSFTto theXrSceneComponentMSFT.parentId()field.
-
parentId
public XrSceneComponentMSFT.Buffer parentId(java.util.function.Consumer<XrUuidMSFT> consumer)
Passes theXrSceneComponentMSFT.parentId()field to the specifiedConsumer.
-
updateTime
public XrSceneComponentMSFT.Buffer updateTime(long value)
Sets the specified value to theXrSceneComponentMSFT.updateTime()field.
-
-