X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fprogram.h;h=ed5410076244bcb0f4c8d16e08482354a3d26ba7;hb=85e83ace47e5a9a8ae7263886255dd81afc69278;hp=af249edefa2066c29bcf23e7c6f643ddd7d6c95c;hpb=224c40efa231c85b61da772a6f58c067d7b579b3;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index af249ede..ed541007 100644 --- a/source/program.h +++ b/source/program.h @@ -42,6 +42,7 @@ public: private: void vertex_shader(const std::string &); void fragment_shader(const std::string &); + void attribute(uint, const std::string &); }; Program(); @@ -52,20 +53,13 @@ public: void detach_shader(Shader &shader); const std::list &get_shaders() const { return shaders; } void set_del_shaders(bool); - void bind_attribute(int, const std::string &); - bool link(); + void bind_attribute(uint, const std::string &); + void link(); int get_param(GLenum param) const; bool get_linked() const { return linked; } std::string get_info_log() const; void bind(); int get_uniform_location(const std::string &) const; - void uniform(int, int); - void uniform(int, float); - void uniform(int, float, float); - void uniform(int, float, float, float); - void uniform(int, float, float, float, float); - void uniform4(int, const float *); - void uniform_matrix4(int, const float *); static void unbind();