GeometryRendererLinepublic class GeometryRenderer
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
CANVAS_SIZE |
|
protected static java.lang.String |
COLOR_NAME |
|
protected float |
mCanvasHeight |
|
protected float |
mCanvasWidth |
|
protected ProgramObject |
mProgram |
|
protected int |
mVertexBuffer |
|
protected static java.lang.String |
POSITION_NAME |
|
protected static java.lang.String |
vshDrawDefault |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bindBufferAttrib() |
|
static GeometryRenderer |
create() |
|
ProgramObject |
getProgram() |
|
int |
getVertexBuffer() |
|
protected boolean |
init() |
|
void |
release() |
|
void |
render(int mode,
int first,
int count) |
|
void |
setCanvasSize(float w,
float h) |
|
void |
setColor(float r,
float g,
float b,
float a) |
|
void |
setVertexBuffer(int buffer) |
protected static final java.lang.String vshDrawDefault
protected static final java.lang.String POSITION_NAME
protected static final java.lang.String COLOR_NAME
protected static final java.lang.String CANVAS_SIZE
protected ProgramObject mProgram
protected int mVertexBuffer
protected float mCanvasWidth
protected float mCanvasHeight
protected boolean init()
public void release()
public static GeometryRenderer create()
public void setColor(float r,
float g,
float b,
float a)
public int getVertexBuffer()
public void setVertexBuffer(int buffer)
public void setCanvasSize(float w,
float h)
public ProgramObject getProgram()
public void bindBufferAttrib()
public void render(int mode,
int first,
int count)