Package zombie.core.opengl
Class Shader
java.lang.Object
zombie.core.opengl.Shader
- All Implemented Interfaces:
IShaderProgramListener
- Direct Known Subclasses:
FireShader
,IsoGridSquare.CircleStencilShader
,PuddlesShader
,SmokeShader
,WaterShader
,WeatherShader
public class Shader extends java.lang.Object implements IShaderProgramListener
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Shader(java.lang.String string)
-
Method Summary
Modifier and Type Method Description void
callback(ShaderProgram shaderProgram)
void
destroy()
void
End()
int
getID()
ShaderProgram
getProgram()
boolean
isCompiled()
protected void
onCompileSuccess(ShaderProgram shaderProgram)
void
postRender(TextureDraw textureDraw)
void
setTexture(Texture texture)
void
Start()
void
startMainThread(TextureDraw textureDraw, int int1)
void
startRenderThread(TextureDraw textureDraw)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ShaderMap
public static java.util.HashMap ShaderMap -
name
public java.lang.String name -
tex
-
width
public int width -
height
public int height
-
-
Constructor Details
-
Shader
public Shader(java.lang.String string)
-
-
Method Details
-
setTexture
-
getID
public int getID() -
Start
public void Start() -
End
public void End() -
destroy
public void destroy() -
startMainThread
-
startRenderThread
-
postRender
-
isCompiled
public boolean isCompiled() -
callback
- Specified by:
callback
in interfaceIShaderProgramListener
-
onCompileSuccess
-
getProgram
-