X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=fde4d85439a2cfe9e7cb82a62aebd965f111d082;hb=d653d25b548070c688e40c052730d63345ce70c9;hp=ed5410076244bcb0f4c8d16e08482354a3d26ba7;hpb=85e83ace47e5a9a8ae7263886255dd81afc69278;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index ed541007..fde4d854 100644 --- a/source/program.h +++ b/source/program.h @@ -10,8 +10,8 @@ Distributed under the LGPL #include #include -#include #include +#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);