public abstract class

CanvasTexture

extends Object
java.lang.Object
   ↳ com.cooliris.media.CanvasTexture

Summary

Public Constructors
CanvasTexture(Bitmap.Config bitmapConfig)
Public Methods
boolean bind(GL11 gl)
void draw(RenderView view, GL11 gl, int x, int y)
void drawWithEffect(RenderView view, GL11 gl, float x, float y, float anchorX, float anchorY, float alpha, float scale)
final int getHeight()
final float getNormalizedHeight()
final float getNormalizedWidth()
final int getWidth()
void resetTexture()
final void setNeedsDraw()
final void setSize(int width, int height)
Protected Methods
abstract void onSizeChanged()
abstract void renderCanvas(Canvas canvas, Bitmap backing, int width, int height)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CanvasTexture (Bitmap.Config bitmapConfig)

Public Methods

public boolean bind (GL11 gl)

public void draw (RenderView view, GL11 gl, int x, int y)

public void drawWithEffect (RenderView view, GL11 gl, float x, float y, float anchorX, float anchorY, float alpha, float scale)

public final int getHeight ()

public final float getNormalizedHeight ()

public final float getNormalizedWidth ()

public final int getWidth ()

public void resetTexture ()

public final void setNeedsDraw ()

public final void setSize (int width, int height)

Protected Methods

protected abstract void onSizeChanged ()

protected abstract void renderCanvas (Canvas canvas, Bitmap backing, int width, int height)