X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=ad37fb65bfca60d51094e741732faf274da7e1ef;hb=3959bf80b361fd1e84bebe22e58f5875e1b68afb;hp=82d06a109a9dde15927409b6cdf8a3e1e7272ebd;hpb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index 82d06a10..ad37fb65 100644 --- a/source/program.h +++ b/source/program.h @@ -27,7 +27,7 @@ private: bool del_shaders; bool linked; - static Program *cur_prog; + static const Program *cur_prog; public: class Loader: public DataFile::Loader @@ -47,6 +47,9 @@ public: Program(); Program(const std::string &, const std::string &); +private: + void init(); +public: virtual ~Program(); void attach_shader(Shader &shader); @@ -58,7 +61,7 @@ public: int get_param(GLenum param) const; bool get_linked() const { return linked; } std::string get_info_log() const; - void bind(); + void bind() const; int get_uniform_location(const std::string &) const; static void unbind();