Mercator
0.4.0
|
Class which manages all the shader factories available. More...
#include <ShaderFactory.h>
Public Member Functions | |
Shader * | newShader (const std::string &type, const Shader::Parameters &) const |
Create a shader of the specified type. More... | |
Static Public Member Functions | |
static ShaderFactories & | instance () |
Construct a singleton instance if required. More... | |
static void | del () |
Delete the instance. | |
Class which manages all the shader factories available.
Requests for new shaders of a given type are passed here, and shader objects are returned.
|
static |
Construct a singleton instance if required.
Shader * Mercator::ShaderFactories::newShader | ( | const std::string & | type, |
const Shader::Parameters & | params | ||
) | const |
Create a shader of the specified type.
type | a string giving the type of shader. |
params | a map of the parameters for the shader |