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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intAllocIndexCount()Returns the value of theAllocIndexCountfield.OVRFovStencilMeshBuffer.BufferAllocIndexCount(int value)Sets the specified value to theAllocIndexCountfield.intAllocVertexCount()Returns the value of theAllocVertexCountfield.OVRFovStencilMeshBuffer.BufferAllocVertexCount(int value)Sets the specified value to theAllocVertexCountfield.java.nio.ShortBufferIndexBuffer()Returns aShortBufferview of the data pointed to by theIndexBufferfield.OVRFovStencilMeshBuffer.BufferIndexBuffer(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theIndexBufferfield.intUsedIndexCount()Returns the value of theUsedIndexCountfield.OVRFovStencilMeshBuffer.BufferUsedIndexCount(int value)Sets the specified value to theUsedIndexCountfield.intUsedVertexCount()Returns the value of theUsedVertexCountfield.OVRFovStencilMeshBuffer.BufferUsedVertexCount(int value)Sets the specified value to theUsedVertexCountfield.OVRVector2f.BufferVertexBuffer()Returns aOVRVector2f.Bufferview of the struct array pointed to by theVertexBufferfield.OVRFovStencilMeshBuffer.BufferVertexBuffer(OVRVector2f.Buffer value)Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
-
-
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 theAllocVertexCountfield.
-
UsedVertexCount
public int UsedVertexCount()
Returns the value of theUsedVertexCountfield.
-
VertexBuffer
@Nullable public OVRVector2f.Buffer VertexBuffer()
Returns aOVRVector2f.Bufferview of the struct array pointed to by theVertexBufferfield.
-
AllocIndexCount
public int AllocIndexCount()
Returns the value of theAllocIndexCountfield.
-
UsedIndexCount
public int UsedIndexCount()
Returns the value of theUsedIndexCountfield.
-
IndexBuffer
@Nullable public java.nio.ShortBuffer IndexBuffer()
Returns aShortBufferview of the data pointed to by theIndexBufferfield.
-
AllocVertexCount
public OVRFovStencilMeshBuffer.Buffer AllocVertexCount(int value)
Sets the specified value to theAllocVertexCountfield.
-
UsedVertexCount
public OVRFovStencilMeshBuffer.Buffer UsedVertexCount(int value)
Sets the specified value to theUsedVertexCountfield.
-
VertexBuffer
public OVRFovStencilMeshBuffer.Buffer VertexBuffer(@Nullable OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
AllocIndexCount
public OVRFovStencilMeshBuffer.Buffer AllocIndexCount(int value)
Sets the specified value to theAllocIndexCountfield.
-
UsedIndexCount
public OVRFovStencilMeshBuffer.Buffer UsedIndexCount(int value)
Sets the specified value to theUsedIndexCountfield.
-
IndexBuffer
public OVRFovStencilMeshBuffer.Buffer IndexBuffer(@Nullable java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theIndexBufferfield.
-
-