Package org.lwjgl.openxr
Class XrSpaceVelocity.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSpaceVelocity,XrSpaceVelocity.Buffer>
-
- org.lwjgl.openxr.XrSpaceVelocity.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSpaceVelocity>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSpaceVelocity
public static class XrSpaceVelocity.Buffer extends org.lwjgl.system.StructBuffer<XrSpaceVelocity,XrSpaceVelocity.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSpaceVelocitystructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSpaceVelocity.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 byXrSpaceVelocity.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
XrSpaceVelocity.type()field.
-
next
public long next()
- Returns:
- the value of the
XrSpaceVelocity.next()field.
-
velocityFlags
public long velocityFlags()
- Returns:
- the value of the
XrSpaceVelocity.velocityFlags()field.
-
linearVelocity
public XrVector3f linearVelocity()
- Returns:
- a
XrVector3fview of theXrSpaceVelocity.linearVelocity()field.
-
angularVelocity
public XrVector3f angularVelocity()
- Returns:
- a
XrVector3fview of theXrSpaceVelocity.angularVelocity()field.
-
type
public XrSpaceVelocity.Buffer type(int value)
Sets the specified value to theXrSpaceVelocity.type()field.
-
type$Default
public XrSpaceVelocity.Buffer type$Default()
Sets theTYPE_SPACE_VELOCITYvalue to theXrSpaceVelocity.type()field.
-
next
public XrSpaceVelocity.Buffer next(long value)
Sets the specified value to theXrSpaceVelocity.next()field.
-
velocityFlags
public XrSpaceVelocity.Buffer velocityFlags(long value)
Sets the specified value to theXrSpaceVelocity.velocityFlags()field.
-
linearVelocity
public XrSpaceVelocity.Buffer linearVelocity(XrVector3f value)
Copies the specifiedXrVector3fto theXrSpaceVelocity.linearVelocity()field.
-
linearVelocity
public XrSpaceVelocity.Buffer linearVelocity(java.util.function.Consumer<XrVector3f> consumer)
Passes theXrSpaceVelocity.linearVelocity()field to the specifiedConsumer.
-
angularVelocity
public XrSpaceVelocity.Buffer angularVelocity(XrVector3f value)
Copies the specifiedXrVector3fto theXrSpaceVelocity.angularVelocity()field.
-
angularVelocity
public XrSpaceVelocity.Buffer angularVelocity(java.util.function.Consumer<XrVector3f> consumer)
Passes theXrSpaceVelocity.angularVelocity()field to the specifiedConsumer.
-
-