Mercator
ShaderFactory_impl.h
1 // This file may be redistributed and modified only under the terms of
2 // the GNU General Public License (See COPYING for details).
3 // Copyright (C) 2005 Alistair Riddoch
4 
5 #ifndef MERCATOR_SHADER_FACTORY_IMPL_H
6 #define MERCATOR_SHADER_FACTORY_IMPL_H
7 
8 #include <Mercator/ShaderFactory.h>
9 
10 namespace Mercator {
11 
12 template <class T>
13 ShaderFactory<T>::ShaderFactory()
14 {
15 }
16 
17 template <class T>
18 ShaderFactory<T>::~ShaderFactory()
19 {
20 }
21 
22 template <class T>
24 {
25  return new T(params);
26 }
27 
28 } // namespace Mercator
29 
30 #endif // MERCATOR_SHADER_FACTORY_IMPL_H
Definition: Area.cpp:20
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:63
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:29
virtual Shader * newShader(const Shader::Parameters &) const
Create a new Shader instance.
Definition: ShaderFactory_impl.h:23