Mercator
ShaderFactory_impl.h
00001 // This file may be redistributed and modified only under the terms of
00002 // the GNU General Public License (See COPYING for details).
00003 // Copyright (C) 2005 Alistair Riddoch
00004 
00005 #ifndef MERCATOR_SHADER_FACTORY_IMPL_H
00006 #define MERCATOR_SHADER_FACTORY_IMPL_H
00007 
00008 #include <Mercator/ShaderFactory.h>
00009 
00010 namespace Mercator {
00011 
00012 template <class T>
00013 ShaderFactory<T>::ShaderFactory()
00014 {
00015 }
00016 
00017 template <class T>
00018 ShaderFactory<T>::~ShaderFactory()
00019 {
00020 }
00021 
00022 template <class T>
00023 Shader * ShaderFactory<T>::newShader(const Shader::Parameters & params) const
00024 {
00025     return new T(params);
00026 }
00027 
00028 } // namespace Mercator
00029 
00030 #endif // MERCATOR_SHADER_FACTORY_IMPL_H