@WorkerThread public abstract class GlTexture extends GlObject
Modifier and Type | Class and Description |
---|---|
static interface |
GlTexture.Filtering |
static interface |
GlTexture.Slot |
static interface |
GlTexture.Wrap |
Modifier and Type | Field and Description |
---|---|
protected long |
changeCount |
protected int |
downScaleFiltering |
protected int |
horizontalWrap |
protected int |
textureHandle |
protected int |
upScaleFiltering |
protected int |
verticalWrap |
Constructor and Description |
---|
GlTexture(int textureTarget) |
Modifier and Type | Method and Description |
---|---|
void |
attach() |
void |
bindTexture(int uniform,
int slot) |
void |
changeBehave(int downScaleFiltering,
int upScaleFiltering,
int horizontalWrap,
int verticalWrap) |
long |
getChangeCount() |
static int |
getMaxTextureSize() |
int |
getTextureHandle() |
abstract int |
getTextureHeight() |
int |
getTextureTarget() |
abstract int |
getTextureWidth() |
Transformation |
getTransformation() |
boolean |
hasTransformation() |
abstract boolean |
isExternalTexture() |
static boolean |
isMipmapFilterMode(int filterMode) |
protected void |
markDirty() |
abstract void |
onAttach(int handle) |
protected void |
onRelease() |
void |
setBehave(int filtering,
int wrap) |
void |
setBehave(int downScaleFiltering,
int upScaleFiltering,
int wrap) |
void |
setBehave(int downScaleFiltering,
int upScaleFiltering,
int horizontalWrap,
int verticalWrap) |
void |
setTransformation(Transformation matrix) |
protected void |
textureChanged() |
protected void |
updateMipmapIfNeeded() |
static int |
upscaleValueToPowOfTwo(int value) |
boolean |
useMipmap() |
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
protected long changeCount
protected int downScaleFiltering
protected int horizontalWrap
protected int textureHandle
protected int upScaleFiltering
protected int verticalWrap
@CallSuper public final void attach()
public void bindTexture(int uniform, int slot)
public void changeBehave(int downScaleFiltering, int upScaleFiltering, int horizontalWrap, int verticalWrap)
@WorkerThread public long getChangeCount()
@WorkerThread public static int getMaxTextureSize()
public int getTextureHandle()
public abstract int getTextureHeight()
public final int getTextureTarget()
public abstract int getTextureWidth()
public Transformation getTransformation()
public boolean hasTransformation()
public abstract boolean isExternalTexture()
public static boolean isMipmapFilterMode(int filterMode)
protected void markDirty()
public abstract void onAttach(int handle)
public void setBehave(int filtering, int wrap)
public void setBehave(int downScaleFiltering, int upScaleFiltering, int wrap)
public void setBehave(int downScaleFiltering, int upScaleFiltering, int horizontalWrap, int verticalWrap)
public void setTransformation(Transformation matrix)
@WorkerThread protected void textureChanged()
protected void updateMipmapIfNeeded()
public static int upscaleValueToPowOfTwo(int value)
public boolean useMipmap()