Package org.lwjgl.openxr
Class XrPosef.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrPosef,XrPosef.Buffer>
-
- org.lwjgl.openxr.XrPosef.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrPosef>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrPosef
public static class XrPosef.Buffer extends org.lwjgl.system.StructBuffer<XrPosef,XrPosef.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrPosefstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XrQuaternionforientation()XrPosef.Bufferorientation(java.util.function.Consumer<XrQuaternionf> consumer)Passes theXrPosef.orientation()field to the specifiedConsumer.XrPosef.Bufferorientation(XrQuaternionf value)Copies the specifiedXrQuaternionfto theXrPosef.orientation()field.XrVector3fposition$()XrPosef.Bufferposition$(java.util.function.Consumer<XrVector3f> consumer)Passes theXrPosef.position$()field to the specifiedConsumer.XrPosef.Bufferposition$(XrVector3f value)Copies the specifiedXrVector3fto theXrPosef.position$()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrPosef.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 byXrPosef.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
-
orientation
public XrQuaternionf orientation()
- Returns:
- a
XrQuaternionfview of theXrPosef.orientation()field.
-
position$
public XrVector3f position$()
- Returns:
- a
XrVector3fview of theXrPosef.position$()field.
-
orientation
public XrPosef.Buffer orientation(XrQuaternionf value)
Copies the specifiedXrQuaternionfto theXrPosef.orientation()field.
-
orientation
public XrPosef.Buffer orientation(java.util.function.Consumer<XrQuaternionf> consumer)
Passes theXrPosef.orientation()field to the specifiedConsumer.
-
position$
public XrPosef.Buffer position$(XrVector3f value)
Copies the specifiedXrVector3fto theXrPosef.position$()field.
-
position$
public XrPosef.Buffer position$(java.util.function.Consumer<XrVector3f> consumer)
Passes theXrPosef.position$()field to the specifiedConsumer.
-
-