mercator 0.4.0
A terrain generation library for the Worldforge system.
|
Class which manages all the shader factories available. More...
#include <ShaderFactory.h>
Public Member Functions | |
std::unique_ptr< Shader > | newShader (const std::string &type, const Shader::Parameters &) const |
Create a shader of the specified type. More... | |
Class which manages all the shader factories available.
Requests for new shaders of a given type are passed here, and shader objects are returned.
Definition at line 40 of file ShaderFactory.h.
Mercator::ShaderFactories::ShaderFactories | ( | ) |
Definition at line 20 of file ShaderFactory.cpp.
std::unique_ptr< 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 |
Definition at line 38 of file ShaderFactory.cpp.