public abstract class GlOperation extends GlObject
Modifier and Type | Class and Description |
---|---|
static interface |
GlOperation.Callback |
Modifier and Type | Field and Description |
---|---|
protected boolean |
needSetup |
protected int |
stageHeight |
protected int |
stageWidth |
Modifier | Constructor and Description |
---|---|
protected |
GlOperation() |
Modifier and Type | Method and Description |
---|---|
abstract void |
bindStateHandler(StateHandler handler) |
protected abstract GlTexture |
doOperation(GlTexture texture) |
void |
flagAsDirty() |
protected abstract void |
glSetup() |
boolean |
isDirty() |
boolean |
isSourceDirty() |
void |
onRelease() |
void |
removeDirtyFlag() |
void |
removeSourceDirtyFlag() |
GlTexture |
render(GlTexture texture)
Start the Operation
|
void |
setCallback(GlOperation.Callback callback) |
void |
setSize(int stageWidth,
int stageHeight) |
java.lang.String |
toString() |
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
protected int stageWidth
protected int stageHeight
protected boolean needSetup
public void setCallback(GlOperation.Callback callback)
public GlTexture render(@Nullable GlTexture texture)
texture
- a ResultRegion object hold the request options like position and transformation.protected abstract void glSetup()
public abstract void bindStateHandler(StateHandler handler)
public void setSize(int stageWidth, int stageHeight)
@AnyThread public void flagAsDirty()
public boolean isDirty()
public boolean isSourceDirty()
public void removeDirtyFlag()
public void removeSourceDirtyFlag()
@NonNull public java.lang.String toString()
toString
in class java.lang.Object