public abstract class UploadedTexture extends BasicTexture
Modifier and Type | Field and Description |
---|---|
protected Bitmap |
mBitmap |
mCanvasRef, mHeight, mId, mState, mTextureHeight, mTextureWidth, mWidth, STATE_ERROR, STATE_LOADED, STATE_UNLOADED, UNSPECIFIED
Modifier | Constructor and Description |
---|---|
protected |
UploadedTexture() |
protected |
UploadedTexture(boolean hasBorder) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
protected int |
getTarget() |
int |
getWidth() |
protected void |
invalidateContent() |
boolean |
isContentValid()
Whether the content on GPU is valid.
|
boolean |
isOpaque() |
boolean |
isUploading() |
protected boolean |
onBind(GLCanvas canvas) |
protected abstract void |
onFreeBitmap(Bitmap bitmap) |
protected abstract Bitmap |
onGetBitmap() |
void |
recycle() |
static void |
resetUploadLimit() |
protected void |
setIsUploading(boolean uploading) |
void |
setOpaque(boolean isOpaque) |
protected void |
setThrottled(boolean throttled) |
void |
updateContent(GLCanvas canvas)
Updates the content on GPU's memory.
|
static boolean |
uploadLimitReached() |
draw, draw, finalize, getId, getTextureHeight, getTextureWidth, hasBorder, inFinalizer, invalidateAllTextures, isFlippedVertically, isLoaded, setAssociatedCanvas, setBorder, setSize, yield, yieldAllTextures
protected Bitmap mBitmap
protected UploadedTexture()
protected UploadedTexture(boolean hasBorder)
protected void setIsUploading(boolean uploading)
public boolean isUploading()
protected void setThrottled(boolean throttled)
public int getWidth()
getWidth
in interface Texture
getWidth
in class BasicTexture
public int getHeight()
getHeight
in interface Texture
getHeight
in class BasicTexture
protected abstract Bitmap onGetBitmap()
protected abstract void onFreeBitmap(Bitmap bitmap)
protected void invalidateContent()
public boolean isContentValid()
public void updateContent(GLCanvas canvas)
canvas
- public static void resetUploadLimit()
public static boolean uploadLimitReached()
protected boolean onBind(GLCanvas canvas)
onBind
in class BasicTexture
protected int getTarget()
getTarget
in class BasicTexture
public void setOpaque(boolean isOpaque)
public boolean isOpaque()
public void recycle()
recycle
in class BasicTexture