public class GlLine extends GlDrawItem
Modifier and Type | Field and Description |
---|---|
protected int |
ColorHandle |
(package private) static int |
COORDS_PER_VERTEX |
private java.lang.String |
FragmentShaderCode |
protected int |
GlProgram |
(package private) static float[] |
LineCoords |
protected int |
MVPMatrixHandle |
protected int |
PositionHandle |
private java.nio.FloatBuffer |
VertexBuffer |
private int |
VertexCount |
private java.lang.String |
VertexShaderCode |
private int |
VertexStride |
color, width
Constructor and Description |
---|
GlLine() |
Modifier and Type | Method and Description |
---|---|
void |
draw(float[] mvpMatrix) |
void |
setPositions(Pos p1,
Pos p2) |
void |
setVertices(float v0,
float v1,
float v2,
float v3,
float v4,
float v5) |
setColor, setColor, setWidth
private java.nio.FloatBuffer VertexBuffer
private final java.lang.String VertexShaderCode
private final java.lang.String FragmentShaderCode
protected int GlProgram
protected int PositionHandle
protected int ColorHandle
protected int MVPMatrixHandle
static final int COORDS_PER_VERTEX
static float[] LineCoords
private final int VertexCount
private final int VertexStride
public void setVertices(float v0, float v1, float v2, float v3, float v4, float v5)
v0
- v1
- v2
- v3
- v4
- v5
- public void draw(float[] mvpMatrix)
draw
in class GlDrawItem
mvpMatrix
-