mercator  0.4.0
A terrain generation library for the Worldforge system.
Mercator::ShaderFactories Class Reference

Class which manages all the shader factories available. More...

#include <ShaderFactory.h>

Public Member Functions

std::unique_ptr< ShadernewShader (const std::string &type, const Shader::Parameters &) const
 Create a shader of the specified type. More...
 

Detailed Description

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.

Member Function Documentation

◆ newShader()

std::unique_ptr< Shader > Mercator::ShaderFactories::newShader ( const std::string &  type,
const Shader::Parameters params 
) const

Create a shader of the specified type.

Parameters
typea string giving the type of shader.
paramsa map of the parameters for the shader
Returns
a pointer to the new shader object

Definition at line 38 of file ShaderFactory.cpp.


The documentation for this class was generated from the following files: