@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 int textureHandle
protected long changeCount
protected int downScaleFiltering
protected int upScaleFiltering
protected int horizontalWrap
protected int verticalWrap
public void bindTexture(int uniform, int slot)
public final int getTextureTarget()
public int getTextureHandle()
protected void markDirty()
@WorkerThread protected void textureChanged()
public boolean hasTransformation()
public void setTransformation(Transformation matrix)
public Transformation getTransformation()
@WorkerThread public static int getMaxTextureSize()
@WorkerThread public long getChangeCount()
public static int upscaleValueToPowOfTwo(int value)
@CallSuper public final void attach()
public abstract void onAttach(int handle)
public abstract boolean isExternalTexture()
public abstract int getTextureWidth()
public abstract int getTextureHeight()
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)
protected void updateMipmapIfNeeded()
public boolean useMipmap()
public static boolean isMipmapFilterMode(int filterMode)
public void changeBehave(int downScaleFiltering, int upScaleFiltering, int horizontalWrap, int verticalWrap)