diff --git a/doc/compilation-speedup.dox b/doc/compilation-speedup.dox index 2ad9b2960..13dfef0ee 100644 --- a/doc/compilation-speedup.dox +++ b/doc/compilation-speedup.dox @@ -21,6 +21,7 @@ available, each namespace has its own: - Magnum.h - SceneGraph/SceneGraph.h + - Shaders/Shaders.h @section compilation-speedup-templates Templates diff --git a/src/Shaders/CMakeLists.txt b/src/Shaders/CMakeLists.txt index 46139bbed..5ef7001c6 100644 --- a/src/Shaders/CMakeLists.txt +++ b/src/Shaders/CMakeLists.txt @@ -11,6 +11,7 @@ set(MagnumShaders_SRCS set(MagnumShaders_HEADERS FlatShader.h PhongShader.h + Shaders.h VertexColorShader.h magnumShadersVisibility.h) diff --git a/src/Shaders/Shaders.h b/src/Shaders/Shaders.h new file mode 100644 index 000000000..5a36b34f8 --- /dev/null +++ b/src/Shaders/Shaders.h @@ -0,0 +1,38 @@ +#ifndef Magnum_Shaders_Shader_h +#define Magnum_Shaders_Shader_h +/* + Copyright © 2010, 2011, 2012 Vladimír Vondruš + + This file is part of Magnum. + + Magnum is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License version 3 + only, as published by the Free Software Foundation. + + Magnum is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License version 3 for more details. +*/ + +/** @file + * @brief Forward declarations for Magnum::Shaders namespace + */ + +#include + +namespace Magnum { namespace Shaders { + +template class FlatShader; +typedef FlatShader<2> FlatShader2D; +typedef FlatShader<3> FlatShader3D; + +class PhongShader; + +template class VertexColorShader; +typedef VertexColorShader<2> VertexColorShader2D; +typedef VertexColorShader<3> VertexColorShader3D; + +}} + +#endif