public abstract class GlAbstractShader extends GlObject
Modifier and Type | Field and Description |
---|---|
protected int |
handle |
protected java.lang.String |
sourceCode |
protected int |
type |
Constructor and Description |
---|
GlAbstractShader(int sourceCodeResId,
int type) |
GlAbstractShader(java.lang.String sourceCode,
int type) |
Modifier and Type | Method and Description |
---|---|
protected void |
attach() |
protected static int |
generateShader(java.lang.String shader,
int type) |
int |
getHandle() |
protected void |
onRelease() |
protected java.lang.String |
prepareSourceCode(java.lang.String sourceCode) |
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
protected int handle
protected final java.lang.String sourceCode
protected final int type
@WorkerThread public GlAbstractShader(@XmlRes int sourceCodeResId, int type)
@WorkerThread public GlAbstractShader(java.lang.String sourceCode, int type)