public class GlImageTexture extends GlTexture
GlTexture.Filtering, GlTexture.Slot, GlTexture.Wrap
changeCount, downScaleFiltering, horizontalWrap, textureHandle, upScaleFiltering, verticalWrap
Constructor and Description |
---|
GlImageTexture() |
Modifier and Type | Method and Description |
---|---|
int |
getTextureHeight() |
int |
getTextureWidth() |
boolean |
isExternalTexture() |
void |
onAttach(int textureHandle) |
protected void |
onRelease() |
void |
setBitmap(android.graphics.Bitmap bitmap) |
void |
setBitmap(android.graphics.Bitmap bitmap,
int maxWidth,
int maxHeight) |
attach, bindTexture, changeBehave, getChangeCount, getMaxTextureSize, getTextureHandle, getTextureTarget, getTransformation, hasTransformation, isMipmapFilterMode, markDirty, setBehave, setBehave, setBehave, setTransformation, textureChanged, updateMipmapIfNeeded, upscaleValueToPowOfTwo, useMipmap
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
public boolean isExternalTexture()
isExternalTexture
in class GlTexture
@AnyThread public int getTextureHeight()
getTextureHeight
in class GlTexture
@AnyThread public int getTextureWidth()
getTextureWidth
in class GlTexture
public void setBitmap(@NonNull android.graphics.Bitmap bitmap)
public void setBitmap(@NonNull android.graphics.Bitmap bitmap, int maxWidth, int maxHeight)