12 #ifndef SHADERMANAGER_H_6014714286 13 #define SHADERMANAGER_H_6014714286 19 #include <Carna/Carna.h> 49 const std::unique_ptr< Details > pimpl;
69 virtual ~ShaderManager();
80 const ShaderProgram& acquireShader(
const std::string& shaderName );
95 void setSource(
const std::string& srcName,
const std::string& src );
100 void removeSource(
const std::string& srcName );
110 #endif // SHADERMANAGER_H_6014714286
Maintains an OpenGL shader program. Realizes the RAII-idiom.
Defines Carna::base::Singleton.
Ensures that each shader is built just once and not each time someone requests it.
#define NON_COPYABLE
Features class it is placed in as non-copyable.