Package org.lwjgl.openxr
Class XrActionStateVector2f.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrActionStateVector2f,XrActionStateVector2f.Buffer>
-
- org.lwjgl.openxr.XrActionStateVector2f.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrActionStateVector2f>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrActionStateVector2f
public static class XrActionStateVector2f.Buffer extends org.lwjgl.system.StructBuffer<XrActionStateVector2f,XrActionStateVector2f.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrActionStateVector2fstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrActionStateVector2f.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 byXrActionStateVector2f.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
XrActionStateVector2f.type()field.
-
next
public long next()
- Returns:
- the value of the
XrActionStateVector2f.next()field.
-
currentState
public XrVector2f currentState()
- Returns:
- a
XrVector2fview of theXrActionStateVector2f.currentState()field.
-
changedSinceLastSync
public boolean changedSinceLastSync()
- Returns:
- the value of the
XrActionStateVector2f.changedSinceLastSync()field.
-
lastChangeTime
public long lastChangeTime()
- Returns:
- the value of the
XrActionStateVector2f.lastChangeTime()field.
-
isActive
public boolean isActive()
- Returns:
- the value of the
XrActionStateVector2f.isActive()field.
-
type
public XrActionStateVector2f.Buffer type(int value)
Sets the specified value to theXrActionStateVector2f.type()field.
-
type$Default
public XrActionStateVector2f.Buffer type$Default()
Sets theTYPE_ACTION_STATE_VECTOR2Fvalue to theXrActionStateVector2f.type()field.
-
next
public XrActionStateVector2f.Buffer next(long value)
Sets the specified value to theXrActionStateVector2f.next()field.
-
currentState
public XrActionStateVector2f.Buffer currentState(XrVector2f value)
Copies the specifiedXrVector2fto theXrActionStateVector2f.currentState()field.
-
currentState
public XrActionStateVector2f.Buffer currentState(java.util.function.Consumer<XrVector2f> consumer)
Passes theXrActionStateVector2f.currentState()field to the specifiedConsumer.
-
changedSinceLastSync
public XrActionStateVector2f.Buffer changedSinceLastSync(boolean value)
Sets the specified value to theXrActionStateVector2f.changedSinceLastSync()field.
-
lastChangeTime
public XrActionStateVector2f.Buffer lastChangeTime(long value)
Sets the specified value to theXrActionStateVector2f.lastChangeTime()field.
-
isActive
public XrActionStateVector2f.Buffer isActive(boolean value)
Sets the specified value to theXrActionStateVector2f.isActive()field.
-
-