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 ofOVRFovStencilMeshBuffer
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
AllocIndexCount()
Returns the value of theAllocIndexCount
field.OVRFovStencilMeshBuffer.Buffer
AllocIndexCount(int value)
Sets the specified value to theAllocIndexCount
field.int
AllocVertexCount()
Returns the value of theAllocVertexCount
field.OVRFovStencilMeshBuffer.Buffer
AllocVertexCount(int value)
Sets the specified value to theAllocVertexCount
field.java.nio.ShortBuffer
IndexBuffer()
Returns aShortBuffer
view of the data pointed to by theIndexBuffer
field.OVRFovStencilMeshBuffer.Buffer
IndexBuffer(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBuffer
to theIndexBuffer
field.int
UsedIndexCount()
Returns the value of theUsedIndexCount
field.OVRFovStencilMeshBuffer.Buffer
UsedIndexCount(int value)
Sets the specified value to theUsedIndexCount
field.int
UsedVertexCount()
Returns the value of theUsedVertexCount
field.OVRFovStencilMeshBuffer.Buffer
UsedVertexCount(int value)
Sets the specified value to theUsedVertexCount
field.OVRVector2f.Buffer
VertexBuffer()
Returns aOVRVector2f.Buffer
view of the struct array pointed to by theVertexBuffer
field.OVRFovStencilMeshBuffer.Buffer
VertexBuffer(OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Buffer
to theVertexBuffer
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRFovStencilMeshBuffer.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 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 theAllocVertexCount
field.
-
UsedVertexCount
public int UsedVertexCount()
Returns the value of theUsedVertexCount
field.
-
VertexBuffer
@Nullable public OVRVector2f.Buffer VertexBuffer()
Returns aOVRVector2f.Buffer
view of the struct array pointed to by theVertexBuffer
field.
-
AllocIndexCount
public int AllocIndexCount()
Returns the value of theAllocIndexCount
field.
-
UsedIndexCount
public int UsedIndexCount()
Returns the value of theUsedIndexCount
field.
-
IndexBuffer
@Nullable public java.nio.ShortBuffer IndexBuffer()
Returns aShortBuffer
view of the data pointed to by theIndexBuffer
field.
-
AllocVertexCount
public OVRFovStencilMeshBuffer.Buffer AllocVertexCount(int value)
Sets the specified value to theAllocVertexCount
field.
-
UsedVertexCount
public OVRFovStencilMeshBuffer.Buffer UsedVertexCount(int value)
Sets the specified value to theUsedVertexCount
field.
-
VertexBuffer
public OVRFovStencilMeshBuffer.Buffer VertexBuffer(@Nullable OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Buffer
to theVertexBuffer
field.
-
AllocIndexCount
public OVRFovStencilMeshBuffer.Buffer AllocIndexCount(int value)
Sets the specified value to theAllocIndexCount
field.
-
UsedIndexCount
public OVRFovStencilMeshBuffer.Buffer UsedIndexCount(int value)
Sets the specified value to theUsedIndexCount
field.
-
IndexBuffer
public OVRFovStencilMeshBuffer.Buffer IndexBuffer(@Nullable java.nio.ShortBuffer value)
Sets the address of the specifiedShortBuffer
to theIndexBuffer
field.
-
-