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