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 ofHmdQuad
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HmdVector3.Buffer
vCorners()
Returns aHmdVector3
.Buffer view of thevCorners
field.HmdVector3
vCorners(int index)
Returns aHmdVector3
view of the struct at the specified index of thevCorners
field.HmdQuad.Buffer
vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindex
of thevCorners
field to the specifiedConsumer
.HmdQuad.Buffer
vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3
at the specified index of thevCorners
field.HmdQuad.Buffer
vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCorners
field to the specifiedConsumer
.HmdQuad.Buffer
vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Buffer
to thevCorners
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newHmdQuad.Buffer
instance 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 thevCorners
field.
-
vCorners
public HmdVector3 vCorners(int index)
Returns aHmdVector3
view of the struct at the specified index of thevCorners
field.
-
vCorners
public HmdQuad.Buffer vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Buffer
to thevCorners
field.
-
vCorners
public HmdQuad.Buffer vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3
at the specified index of thevCorners
field.
-
vCorners
public HmdQuad.Buffer vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCorners
field to the specifiedConsumer
.
-
vCorners
public HmdQuad.Buffer vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindex
of thevCorners
field to the specifiedConsumer
.
-
-