public class GlIndexedTriangleMesh extends GlDrawItem
Modifier and Type | Field and Description |
---|---|
private boolean |
buffersDirty |
private int[] |
bufId |
private float[] |
Coords |
(package private) static int |
COORDS_PER_VERTEX |
private static java.lang.String |
FragmentShaderCode |
private int |
GlProgram |
private java.nio.ShortBuffer |
IndexBuffer |
private int |
IndexCount |
private short[] |
Indexes |
private java.nio.FloatBuffer |
VertexBuffer |
private static java.lang.String |
VertexShaderCode |
private int |
VertexStride |
color, width
Constructor and Description |
---|
GlIndexedTriangleMesh() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearGl() |
void |
draw(float[] mvpMatrix) |
private void |
resetBuffers() |
void |
setData(Pos[] positions,
short[] indexes) |
setColor, setColor, setWidth
private static final java.lang.String VertexShaderCode
private static final java.lang.String FragmentShaderCode
private int GlProgram
static final int COORDS_PER_VERTEX
private float[] Coords
private short[] Indexes
private int IndexCount
private final int VertexStride
private java.nio.FloatBuffer VertexBuffer
private java.nio.ShortBuffer IndexBuffer
private int[] bufId
private boolean buffersDirty
void clearGl()
private void resetBuffers()
public void setData(Pos[] positions, short[] indexes)
positions
- indexes
- public void draw(float[] mvpMatrix)
draw
in class GlDrawItem
mvpMatrix
-