]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Split Module into a base class and format-specific class
[libs/gl.git] / source / core / program.h
index 7038468b52ce048e27042a86e100807c4fe93ed2..9fa757479eacf11d09ca7880bbab83daeb74c6db 100644 (file)
@@ -11,6 +11,7 @@
 namespace Msp {
 namespace GL {
 
+class GlslModule;
 class Module;
 class Shader;
 
@@ -118,12 +119,11 @@ private:
 public:
        virtual ~Program();
 
-private:
-       unsigned add_stage(GLenum);
-public:
        void add_stages(const Module &, const std::map<std::string, int> & = std::map<std::string, int>());
 private:
-       void compile_stage(unsigned);
+       unsigned add_stage(GLenum);
+       void add_glsl_stages(const GlslModule &, const std::map<std::string, int> &);
+       void compile_glsl_stage(unsigned);
 
 public:
        DEPRECATED void attach_shader(Shader &shader);