| Constructor and Description |
|---|
GLDrawer2D(boolean isOES)
コンストラクタ
GLコンテキスト/EGLレンダリングコンテキストが有効な状態で呼ばないとダメ
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(int texId,
float[] tex_matrix,
int offset) |
void |
draw(ITexture texture) |
void |
draw(TextureOffscreen offscreen) |
float[] |
getMvpMatrix()
モデルビュー変換行列を取得(内部配列を直接返すので変更時は要注意)
|
void |
getMvpMatrix(float[] matrix,
int offset)
モデルビュー変換行列のコピーを取得
|
void |
release() |
IDrawer2D |
setMvpMatrix(float[] matrix,
int offset)
モデルビュー変換行列に行列を割り当てる
|
public GLDrawer2D(boolean isOES)
isOES - 外部テクスチャ(GL_TEXTURE_EXTERNAL_OES)を使う場合はtrue。通常の2Dテキスチャならfalsepublic float[] getMvpMatrix()
getMvpMatrix in interface IDrawer2Dpublic IDrawer2D setMvpMatrix(float[] matrix, int offset)
setMvpMatrix in interface IDrawer2Dmatrix - 領域チェックしていないのでoffsetから16個以上必須offset - public void getMvpMatrix(float[] matrix,
int offset)
getMvpMatrix in interface IDrawer2Dmatrix - 領域チェックしていないのでoffsetから16個以上必須offset - public void draw(int texId,
float[] tex_matrix,
int offset)
public void draw(TextureOffscreen offscreen)