Browse Source

Forward declarations for Shaders namespace in Shaders/Shaders.h.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
681914e2d0
  1. 1
      doc/compilation-speedup.dox
  2. 1
      src/Shaders/CMakeLists.txt
  3. 38
      src/Shaders/Shaders.h

1
doc/compilation-speedup.dox

@ -21,6 +21,7 @@ available, each namespace has its own:
- Magnum.h - Magnum.h
- SceneGraph/SceneGraph.h - SceneGraph/SceneGraph.h
- Shaders/Shaders.h
@section compilation-speedup-templates Templates @section compilation-speedup-templates Templates

1
src/Shaders/CMakeLists.txt

@ -11,6 +11,7 @@ set(MagnumShaders_SRCS
set(MagnumShaders_HEADERS set(MagnumShaders_HEADERS
FlatShader.h FlatShader.h
PhongShader.h PhongShader.h
Shaders.h
VertexColorShader.h VertexColorShader.h
magnumShadersVisibility.h) magnumShadersVisibility.h)

38
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š <mosra@centrum.cz>
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 <cstdint>
namespace Magnum { namespace Shaders {
template<std::uint8_t> class FlatShader;
typedef FlatShader<2> FlatShader2D;
typedef FlatShader<3> FlatShader3D;
class PhongShader;
template<std::uint8_t> class VertexColorShader;
typedef VertexColorShader<2> VertexColorShader2D;
typedef VertexColorShader<3> VertexColorShader3D;
}}
#endif
Loading…
Cancel
Save