Mercator
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>
23
Shader
*
ShaderFactory<T>::newShader
(
const
Shader::Parameters
& params)
const
24
{
25
return
new
T(params);
26
}
27
28
}
// namespace Mercator
29
30
#endif // MERCATOR_SHADER_FACTORY_IMPL_H
Mercator::ShaderFactory::newShader
virtual Shader * newShader(const Shader::Parameters &) const
Create a new Shader instance.
Definition:
ShaderFactory_impl.h:23
Mercator::Shader
Base class for Shader objects which create surface data for use when rendering terrain.
Definition:
Shader.h:29
Mercator::Shader::Parameters
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition:
Shader.h:63
Generated for Mercator by
1.8.17