X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=af506fe8c57b1128a5354e1515c20059bcccdb1e;hb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;hp=ad37fb65bfca60d51094e741732faf274da7e1ef;hpb=76e338af116120d93d082ad247591ec9adad9233;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index ad37fb65..af506fe8 100644 --- a/source/program.h +++ b/source/program.h @@ -10,9 +10,8 @@ Distributed under the LGPL #include #include -#include +#include #include "gl.h" -#include "types.h" namespace Msp { namespace GL { @@ -22,7 +21,7 @@ class Shader; class Program { private: - uint id; + unsigned id; std::list shaders; bool del_shaders; bool linked; @@ -30,18 +29,15 @@ private: static const Program *cur_prog; public: - class Loader: public DataFile::Loader + class Loader: public DataFile::ObjectLoader { - private: - Program &prog; - public: Loader(Program &); private: void vertex_shader(const std::string &); void fragment_shader(const std::string &); - void attribute(uint, const std::string &); + void attribute(unsigned, const std::string &); virtual void finish(); }; @@ -56,7 +52,7 @@ public: void detach_shader(Shader &shader); const std::list &get_shaders() const { return shaders; } void set_del_shaders(bool); - void bind_attribute(uint, const std::string &); + void bind_attribute(unsigned, const std::string &); void link(); int get_param(GLenum param) const; bool get_linked() const { return linked; }