Package org.lwjgl.openxr
Class XrFrameState.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrFrameState,XrFrameState.Buffer>
-
- org.lwjgl.openxr.XrFrameState.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrFrameState>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrFrameState
public static class XrFrameState.Buffer extends org.lwjgl.system.StructBuffer<XrFrameState,XrFrameState.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrFrameStatestructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrFrameState.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 byXrFrameState.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
XrFrameState.type()field.
-
next
public long next()
- Returns:
- the value of the
XrFrameState.next()field.
-
predictedDisplayTime
public long predictedDisplayTime()
- Returns:
- the value of the
XrFrameState.predictedDisplayTime()field.
-
predictedDisplayPeriod
public long predictedDisplayPeriod()
- Returns:
- the value of the
XrFrameState.predictedDisplayPeriod()field.
-
shouldRender
public boolean shouldRender()
- Returns:
- the value of the
XrFrameState.shouldRender()field.
-
type
public XrFrameState.Buffer type(int value)
Sets the specified value to theXrFrameState.type()field.
-
type$Default
public XrFrameState.Buffer type$Default()
Sets theTYPE_FRAME_STATEvalue to theXrFrameState.type()field.
-
next
public XrFrameState.Buffer next(long value)
Sets the specified value to theXrFrameState.next()field.
-
next
public XrFrameState.Buffer next(XrSecondaryViewConfigurationFrameStateMSFT value)
Prepends the specifiedXrSecondaryViewConfigurationFrameStateMSFTvalue to thenextchain.
-
predictedDisplayTime
public XrFrameState.Buffer predictedDisplayTime(long value)
Sets the specified value to theXrFrameState.predictedDisplayTime()field.
-
predictedDisplayPeriod
public XrFrameState.Buffer predictedDisplayPeriod(long value)
Sets the specified value to theXrFrameState.predictedDisplayPeriod()field.
-
shouldRender
public XrFrameState.Buffer shouldRender(boolean value)
Sets the specified value to theXrFrameState.shouldRender()field.
-
-