public class GlPosGroup extends GlDrawItem
Modifier and Type | Field and Description |
---|---|
protected int |
ColorHandle |
(package private) static float[] |
Coords |
(package private) static int |
COORDS_PER_VERTEX |
private java.lang.String |
FragmentShaderCode |
private int |
GlProgram |
protected int |
MVPMatrixHandle |
protected int |
PositionHandle |
private java.nio.FloatBuffer |
VertexBuffer |
private int |
VertexCount |
private java.lang.String |
VertexShaderCode |
private int |
VertexStride |
protected int |
WidthHandle |
color, width
Constructor and Description |
---|
GlPosGroup() |
Modifier and Type | Method and Description |
---|---|
void |
draw(float[] mvpMatrix) |
private void |
resetBuffers() |
void |
setPositions(Pos[] positions) |
setColor, setColor, setWidth
private java.nio.FloatBuffer VertexBuffer
private final java.lang.String VertexShaderCode
private final java.lang.String FragmentShaderCode
private int GlProgram
protected int PositionHandle
protected int WidthHandle
protected int ColorHandle
protected int MVPMatrixHandle
static final int COORDS_PER_VERTEX
static float[] Coords
private int VertexCount
private final int VertexStride
public void setPositions(Pos[] positions)
positions
- private void resetBuffers()
public void draw(float[] mvpMatrix)
draw
in class GlDrawItem
mvpMatrix
-