public class GlCanvasTexture extends GlTexture
GlTexture.Filtering, GlTexture.Slot, GlTexture.Wrap
changeCount, downScaleFiltering, horizontalWrap, textureHandle, upScaleFiltering, verticalWrap
Constructor and Description |
---|
GlCanvasTexture(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
bindTexture(int uniform,
int slot) |
int |
getTextureHeight() |
int |
getTextureWidth() |
boolean |
isExternalTexture() |
android.graphics.Canvas |
lockCanvas() |
void |
onAttach(int textureHandle) |
protected void |
onRelease() |
void |
setSize(int width,
int height) |
protected void |
textureChanged() |
void |
unlock() |
void |
updateTexture() |
attach, changeBehave, getChangeCount, getMaxTextureSize, getTextureHandle, getTextureTarget, getTransformation, hasTransformation, isMipmapFilterMode, markDirty, setBehave, setBehave, setBehave, setTransformation, updateMipmapIfNeeded, upscaleValueToPowOfTwo, useMipmap
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
public void bindTexture(int uniform, int slot)
bindTexture
in class GlTexture
@AnyThread public int getTextureHeight()
getTextureHeight
in class GlTexture
@AnyThread public int getTextureWidth()
getTextureWidth
in class GlTexture
public boolean isExternalTexture()
isExternalTexture
in class GlTexture
@Nullable public android.graphics.Canvas lockCanvas()
public void setSize(int width, int height)
@WorkerThread protected void textureChanged()
textureChanged
in class GlTexture
public void unlock()
public void updateTexture()