Package org.lwjgl.openvr
Class HmdQuad.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<HmdQuad,HmdQuad.Buffer>
-
- org.lwjgl.openvr.HmdQuad.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<HmdQuad>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- HmdQuad
public static class HmdQuad.Buffer extends org.lwjgl.system.StructBuffer<HmdQuad,HmdQuad.Buffer> implements org.lwjgl.system.NativeResource
An array ofHmdQuadstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HmdVector3.BuffervCorners()Returns aHmdVector3.Buffer view of thevCornersfield.HmdVector3vCorners(int index)Returns aHmdVector3view of the struct at the specified index of thevCornersfield.HmdQuad.BuffervCorners(int index, java.util.function.Consumer<HmdVector3> consumer)Passes the element atindexof thevCornersfield to the specifiedConsumer.HmdQuad.BuffervCorners(int index, HmdVector3 value)Copies the specifiedHmdVector3at the specified index of thevCornersfield.HmdQuad.BuffervCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)Passes thevCornersfield to the specifiedConsumer.HmdQuad.BuffervCorners(HmdVector3.Buffer value)Copies the specifiedHmdVector3.Bufferto thevCornersfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newHmdQuad.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 byHmdQuad.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
-
vCorners
public HmdVector3.Buffer vCorners()
Returns aHmdVector3.Buffer view of thevCornersfield.
-
vCorners
public HmdVector3 vCorners(int index)
Returns aHmdVector3view of the struct at the specified index of thevCornersfield.
-
vCorners
public HmdQuad.Buffer vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Bufferto thevCornersfield.
-
vCorners
public HmdQuad.Buffer vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3at the specified index of thevCornersfield.
-
vCorners
public HmdQuad.Buffer vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCornersfield to the specifiedConsumer.
-
vCorners
public HmdQuad.Buffer vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindexof thevCornersfield to the specifiedConsumer.
-
-