public interface ShaderProvider
Shader
instances for a Renderable
on request. Also responsible for disposing of any created
ShaderProgram
instances on a call to dispose()
.Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes all resources created by the provider
|
Shader |
getShader(Renderable renderable)
Returns a
Shader for the given Renderable . |
Shader getShader(Renderable renderable)
Shader
for the given Renderable
. The RenderInstance may already contain a Shader, in which case
the provider may decide to return that.renderable
- the Renderablevoid dispose()
Copyright © 2015. All rights reserved.