public class VertexBuffer extends GLFloatBuffer
Modifier and Type | Field and Description |
---|---|
protected java.nio.ShortBuffer |
mIndexBuffer |
protected int |
mIndicesNum |
protected int |
mIndicesNumUsed |
protected int |
mPrimitive |
protected int |
mVertexPointerSize |
protected int |
mVerticesNum |
mBuffer
Constructor and Description |
---|
VertexBuffer(int primitive,
int verticesNum,
float... vertices) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
draw(GLState glState) |
java.nio.ShortBuffer |
getIndexBuffer() |
int |
getIndicesNum() |
int |
getIndicesNumUsed() |
int |
getPrimitive() |
int |
getVertexPointerSize() |
int |
getVerticesNum() |
void |
setIndices(short... indices) |
void |
setIndicesNumUsed(int indicesNumUsed) |
void |
setPrimitive(int primitive) |
void |
setVertexPointerSize(int vertexPointerSize) |
void |
setVertices(int primitive,
int verticesNum,
float... vertices) |
setValues
protected int mPrimitive
protected int mVerticesNum
protected int mIndicesNum
protected int mIndicesNumUsed
protected java.nio.ShortBuffer mIndexBuffer
protected int mVertexPointerSize
public VertexBuffer(int primitive, int verticesNum, float... vertices)
public void setVertices(int primitive, int verticesNum, float... vertices)
public int getVerticesNum()
public void setIndices(short... indices)
public java.nio.ShortBuffer getIndexBuffer()
public int getIndicesNum()
public int getIndicesNumUsed()
public void setIndicesNumUsed(int indicesNumUsed)
public int getPrimitive()
public void setPrimitive(int primitive)
public int getVertexPointerSize()
public void setVertexPointerSize(int vertexPointerSize)
public void draw(GLState glState)
public void dispose()
dispose
in class GLFloatBuffer