com.annahid.libs.artenus.graphics.rendering
ShaderManager
Serves as the life-cycle manager for shader programs. All shader programs should be registered
with this class in order to be properly handled by the framework. Default shader programs that
come with the framework are automatically registered with this class.
public class ShaderManager
Constructor Summary
Modifier and Type | Constructor and Description |
---|---|
public | ShaderManager() |
Method Summary
Modifier and Type | Method and Description |
---|---|
public static void | loadAll() Called by the renderer when the rendering context is ready and shader programs can be
compiled. |
public static void | register(ShaderProgram program) Registers a shader program with the shader manager. |
Methods inherited from java.lang.Object
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
Method Detail
loadAll |
---|
public static void loadAll() Called by the renderer when the rendering context is ready and shader programs can be
compiled. Manual use of this method is not recommended. |
register | ||
---|---|---|
public static void register( ShaderProgram program ) Registers a shader program with the shader manager. Parameters:
|