Mercator
Main Page
Classes
Files
File List
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
Generated by
1.8.1.1