public class GlPos extends GlDrawItem
Modifier and Type | Field and Description |
---|---|
protected int |
ColorHandle |
(package private) static float[] |
Coord |
(package private) static int |
COORDS_PER_VERTEX |
private java.lang.String |
FragmentShaderCode |
protected 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 |
---|
GlPos() |
Modifier and Type | Method and Description |
---|---|
void |
draw(float[] mvpMatrix) |
void |
setPos(Pos p1) |
void |
setVertex(float x,
float y,
float z) |
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 WidthHandle
protected int ColorHandle
protected int MVPMatrixHandle
static final int COORDS_PER_VERTEX
static float[] Coord
private final int VertexCount
private final int VertexStride
public void setPos(Pos p1)
p1
- public void setVertex(float x, float y, float z)
x
- y
- z
- public void draw(float[] mvpMatrix)
draw
in class GlDrawItem
mvpMatrix
-