TextureDrawerCodecpublic class TextureDrawer
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DRAW_FUNCTION |
|
protected static java.lang.String |
fshDrawer |
|
protected int |
mFlipScaleLoc |
|
protected ProgramObject |
mProgram |
|
protected int |
mRotLoc |
|
protected int |
mVertBuffer |
|
static float[] |
vertices |
|
protected static java.lang.String |
vshDrawer |
| Modifier | Constructor | Description |
|---|---|---|
protected |
TextureDrawer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bindVertexBuffer() |
|
static TextureDrawer |
create() |
|
void |
drawTexture(int texID) |
|
void |
drawTexture(int texID,
int type) |
|
ProgramObject |
getProgram() |
|
protected boolean |
init(java.lang.String vsh,
java.lang.String fsh) |
|
void |
release() |
|
void |
setFlipScale(float x,
float y) |
|
void |
setRotation(float rad) |
protected static final java.lang.String vshDrawer
protected static final java.lang.String fshDrawer
public static final float[] vertices
public static final int DRAW_FUNCTION
protected ProgramObject mProgram
protected int mVertBuffer
protected int mRotLoc
protected int mFlipScaleLoc
public ProgramObject getProgram()
protected boolean init(java.lang.String vsh,
java.lang.String fsh)
public static TextureDrawer create()
public void release()
public void drawTexture(int texID)
public void drawTexture(int texID,
int type)
public void bindVertexBuffer()
public void setRotation(float rad)
public void setFlipScale(float x,
float y)