Artenus 2D Framework
Artenus Reference
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 TypeConstructor and Description
public ShaderManager()

Method Summary

Modifier and TypeMethod and Description
public static voidloadAll()
Called by the renderer when the rendering context is ready and shader programs can be compiled.
public static voidregister(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

Constructor Detail

ShaderManager
public  ShaderManager()

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:
programThe shader program