Package org.lwjgl.openxr
Class XrSpaceLocation.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSpaceLocation,XrSpaceLocation.Buffer>
-
- org.lwjgl.openxr.XrSpaceLocation.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSpaceLocation>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSpaceLocation
public static class XrSpaceLocation.Buffer extends org.lwjgl.system.StructBuffer<XrSpaceLocation,XrSpaceLocation.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSpaceLocationstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSpaceLocation.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 byXrSpaceLocation.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
XrSpaceLocation.type()field.
-
next
public long next()
- Returns:
- the value of the
XrSpaceLocation.next()field.
-
locationFlags
public long locationFlags()
- Returns:
- the value of the
XrSpaceLocation.locationFlags()field.
-
pose
public XrPosef pose()
- Returns:
- a
XrPosefview of theXrSpaceLocation.pose()field.
-
type
public XrSpaceLocation.Buffer type(int value)
Sets the specified value to theXrSpaceLocation.type()field.
-
type$Default
public XrSpaceLocation.Buffer type$Default()
Sets theTYPE_SPACE_LOCATIONvalue to theXrSpaceLocation.type()field.
-
next
public XrSpaceLocation.Buffer next(long value)
Sets the specified value to theXrSpaceLocation.next()field.
-
next
public XrSpaceLocation.Buffer next(XrEyeGazeSampleTimeEXT value)
Prepends the specifiedXrEyeGazeSampleTimeEXTvalue to thenextchain.
-
next
public XrSpaceLocation.Buffer next(XrSpaceVelocity value)
Prepends the specifiedXrSpaceVelocityvalue to thenextchain.
-
locationFlags
public XrSpaceLocation.Buffer locationFlags(long value)
Sets the specified value to theXrSpaceLocation.locationFlags()field.
-
pose
public XrSpaceLocation.Buffer pose(XrPosef value)
Copies the specifiedXrPosefto theXrSpaceLocation.pose()field.
-
pose
public XrSpaceLocation.Buffer pose(java.util.function.Consumer<XrPosef> consumer)
Passes theXrSpaceLocation.pose()field to the specifiedConsumer.
-
-