Package org.lwjgl.ovr
Class OVRFovStencilMeshBuffer.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRFovStencilMeshBuffer,OVRFovStencilMeshBuffer.Buffer>
-
- org.lwjgl.ovr.OVRFovStencilMeshBuffer.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OVRFovStencilMeshBuffer>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OVRFovStencilMeshBuffer
public static class OVRFovStencilMeshBuffer.Buffer extends org.lwjgl.system.StructBuffer<OVRFovStencilMeshBuffer,OVRFovStencilMeshBuffer.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRFovStencilMeshBufferstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRFovStencilMeshBuffer.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 byOVRFovStencilMeshBuffer.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
-
AllocVertexCount
public int AllocVertexCount()
- Returns:
- the value of the
OVRFovStencilMeshBuffer.AllocVertexCount()field.
-
UsedVertexCount
public int UsedVertexCount()
- Returns:
- the value of the
OVRFovStencilMeshBuffer.UsedVertexCount()field.
-
VertexBuffer
@Nullable public OVRVector2f.Buffer VertexBuffer()
- Returns:
- a
OVRVector2f.Bufferview of the struct array pointed to by theOVRFovStencilMeshBuffer.VertexBuffer()field.
-
AllocIndexCount
public int AllocIndexCount()
- Returns:
- the value of the
OVRFovStencilMeshBuffer.AllocIndexCount()field.
-
UsedIndexCount
public int UsedIndexCount()
- Returns:
- the value of the
OVRFovStencilMeshBuffer.UsedIndexCount()field.
-
IndexBuffer
@Nullable public java.nio.ShortBuffer IndexBuffer()
- Returns:
- a
ShortBufferview of the data pointed to by theOVRFovStencilMeshBuffer.IndexBuffer()field.
-
AllocVertexCount
public OVRFovStencilMeshBuffer.Buffer AllocVertexCount(int value)
Sets the specified value to theOVRFovStencilMeshBuffer.AllocVertexCount()field.
-
UsedVertexCount
public OVRFovStencilMeshBuffer.Buffer UsedVertexCount(int value)
Sets the specified value to theOVRFovStencilMeshBuffer.UsedVertexCount()field.
-
VertexBuffer
public OVRFovStencilMeshBuffer.Buffer VertexBuffer(@Nullable OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Bufferto theOVRFovStencilMeshBuffer.VertexBuffer()field.
-
AllocIndexCount
public OVRFovStencilMeshBuffer.Buffer AllocIndexCount(int value)
Sets the specified value to theOVRFovStencilMeshBuffer.AllocIndexCount()field.
-
UsedIndexCount
public OVRFovStencilMeshBuffer.Buffer UsedIndexCount(int value)
Sets the specified value to theOVRFovStencilMeshBuffer.UsedIndexCount()field.
-
IndexBuffer
public OVRFovStencilMeshBuffer.Buffer IndexBuffer(@Nullable java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theOVRFovStencilMeshBuffer.IndexBuffer()field.
-
-