]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Add class Technique to share passes between Objects
[libs/gl.git] / source / program.h
index ed5410076244bcb0f4c8d16e08482354a3d26ba7..fde4d85439a2cfe9e7cb82a62aebd965f111d082 100644 (file)
@@ -10,8 +10,8 @@ Distributed under the LGPL
 
 #include <list>
 #include <string>
-#include <GL/gl.h>
 #include <msp/datafile/loader.h>
+#include "gl.h"
 #include "types.h"
 
 namespace Msp {
@@ -37,16 +37,19 @@ public:
 
        public:
                Loader(Program &);
-               ~Loader();
 
        private:
                void vertex_shader(const std::string &);
                void fragment_shader(const std::string &);
                void attribute(uint, const std::string &);
+               virtual void finish();
        };
 
        Program();
        Program(const std::string &, const std::string &);
+private:
+       void init();
+public:
        virtual ~Program();
 
        void attach_shader(Shader &shader);