public interface Shader extends Disposable
Modifier and Type | Method and Description |
---|---|
void |
begin(Camera camera,
RenderContext context)
Initializes the context for exclusive rendering by this shader
|
boolean |
canRender(Renderable instance)
Whether this shader is intended to render the
Renderable |
int |
compareTo(Shader other)
Compare this shader against the other, used for sorting, light weight shaders are rendered first.
|
void |
end()
Cleanup the context so other shaders can render
|
void |
init()
Initializes the Shader, must be called before the Shader can be used
|
void |
render(Renderable renderable)
|
dispose
void init()
int compareTo(Shader other)
boolean canRender(Renderable instance)
Renderable
void begin(Camera camera, RenderContext context)
void render(Renderable renderable)
void end()