Package org.lwjgl.openxr
Class XrView.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrView,XrView.Buffer>
-
- org.lwjgl.openxr.XrView.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrView>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrView
public static class XrView.Buffer extends org.lwjgl.system.StructBuffer<XrView,XrView.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrViewstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XrFovffov()XrView.Bufferfov(java.util.function.Consumer<XrFovf> consumer)Passes theXrView.fov()field to the specifiedConsumer.XrView.Bufferfov(XrFovf value)Copies the specifiedXrFovfto theXrView.fov()field.longnext()XrView.Buffernext(long value)Sets the specified value to theXrView.next()field.XrPosefpose()XrView.Bufferpose(java.util.function.Consumer<XrPosef> consumer)Passes theXrView.pose()field to the specifiedConsumer.XrView.Bufferpose(XrPosef value)Copies the specifiedXrPosefto theXrView.pose()field.inttype()XrView.Buffertype(int value)Sets the specified value to theXrView.type()field.XrView.Buffertype$Default()Sets theTYPE_VIEWvalue to theXrView.type()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrView.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 byXrView.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
XrView.type()field.
-
next
public long next()
- Returns:
- the value of the
XrView.next()field.
-
pose
public XrPosef pose()
- Returns:
- a
XrPosefview of theXrView.pose()field.
-
fov
public XrFovf fov()
- Returns:
- a
XrFovfview of theXrView.fov()field.
-
type
public XrView.Buffer type(int value)
Sets the specified value to theXrView.type()field.
-
type$Default
public XrView.Buffer type$Default()
Sets theTYPE_VIEWvalue to theXrView.type()field.
-
next
public XrView.Buffer next(long value)
Sets the specified value to theXrView.next()field.
-
pose
public XrView.Buffer pose(XrPosef value)
Copies the specifiedXrPosefto theXrView.pose()field.
-
pose
public XrView.Buffer pose(java.util.function.Consumer<XrPosef> consumer)
Passes theXrView.pose()field to the specifiedConsumer.
-
fov
public XrView.Buffer fov(XrFovf value)
Copies the specifiedXrFovfto theXrView.fov()field.
-
fov
public XrView.Buffer fov(java.util.function.Consumer<XrFovf> consumer)
Passes theXrView.fov()field to the specifiedConsumer.
-
-