X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=63d43e0f800f65b9ac58b7df6017c6bf7b51588f;hb=656b4577fccfb02bea747871e5ab10148f002443;hp=af506fe8c57b1128a5354e1515c20059bcccdb1e;hpb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index af506fe8..63d43e0f 100644 --- a/source/program.h +++ b/source/program.h @@ -11,6 +11,7 @@ Distributed under the LGPL #include #include #include +#include "bindable.h" #include "gl.h" namespace Msp { @@ -18,7 +19,7 @@ namespace GL { class Shader; -class Program +class Program: public Bindable { private: unsigned id; @@ -26,8 +27,6 @@ private: bool del_shaders; bool linked; - static const Program *cur_prog; - public: class Loader: public DataFile::ObjectLoader { @@ -61,9 +60,6 @@ public: int get_uniform_location(const std::string &) const; static void unbind(); - -private: - void maybe_bind(); }; } // namespace GL