]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Refactor adding and compiling shader stages in Program
[libs/gl.git] / source / core / program.h
index f318c60639012ea66f9da3c43139003cae519202..7038468b52ce048e27042a86e100807c4fe93ed2 100644 (file)
@@ -92,7 +92,7 @@ public:
 
 private:
        unsigned id;
-       std::vector<unsigned> shader_ids;
+       std::vector<unsigned> stage_ids;
        const Module *module;
        bool linked;
        UniformBlockMap uniform_blocks;
@@ -118,8 +118,14 @@ 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);
 
+public:
        DEPRECATED void attach_shader(Shader &shader);
        DEPRECATED void attach_shader_owned(Shader *shader);
        DEPRECATED void detach_shader(Shader &shader);