public class Line extends java.lang.Object implements ARDrawable
| Constructor and Description |
|---|
Line(float width) |
Line(float width,
ShaderProgram shaderProgram) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(float[] projectionMatrix,
float[] modelViewMatrix) |
void |
draw(GL10 gl) |
float[] |
getColor() |
java.nio.FloatBuffer |
getColorBuffer() |
float[] |
getEnd() |
java.nio.FloatBuffer |
getMVertexBuffer() |
float[] |
getStart() |
float |
getWidth() |
void |
setColor(float[] color) |
void |
setEnd(float[] end) |
void |
setShaderProgram(ShaderProgram program) |
void |
setStart(float[] start) |
void |
setWidth(float width) |
public Line(float width)
width - Width of the linepublic Line(float width,
ShaderProgram shaderProgram)
public void draw(GL10 gl)
public float getWidth()
public void setWidth(float width)
public java.nio.FloatBuffer getMVertexBuffer()
public float[] getStart()
public void setStart(float[] start)
public float[] getEnd()
public void setEnd(float[] end)
public float[] getColor()
public void setColor(float[] color)
public java.nio.FloatBuffer getColorBuffer()
public void draw(float[] projectionMatrix,
float[] modelViewMatrix)
draw in interface ARDrawablepublic void setShaderProgram(ShaderProgram program)
setShaderProgram in interface ARDrawable