Methods Summary |
---|
protected int | getTarget()
return GL11.GL_TEXTURE_2D;
|
public boolean | isFlippedVertically()
return mIsFlipped;
|
public boolean | isOpaque()
return mOpaque;
|
protected boolean | onBind(GLCanvas canvas)
if (isLoaded()) return true;
Log.w(TAG, "lost the content due to context change");
return false;
|
protected void | prepare(GLCanvas canvas)
GLId glId = canvas.getGLId();
mId = glId.generateTexture();
canvas.initializeTextureSize(this, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE);
canvas.setTextureParameters(this);
mState = STATE_LOADED;
setAssociatedCanvas(canvas);
|
public void | setIsFlippedVertically(boolean isFlipped)
mIsFlipped = isFlipped;
|
public void | yield()
// we cannot free the texture because we have no backup.
|