X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=a494e0798f5d67ef5ecaf7f770d7e289a06bc150;hb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;hp=090d8ed5ebc5c4d191ab24d13f7cef402502cdc3;hpb=7f0e08f04536bf42b8f64e7dff5cc3e18b916c7b;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 090d8ed5..a494e079 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -20,7 +20,7 @@ class Shader; A complete shader program. Programs can be assembled of individual Shaders or generated with a set of standard features. */ -class Program: public Bindable +class Program { public: class Loader: public DataFile::CollectionObjectLoader @@ -125,6 +125,7 @@ private: std::vector uniforms; LayoutHash uniform_layout_hash; std::vector attributes; + std::string debug_name; public: /// Constructs an empty Program with no shader stages attached. @@ -190,8 +191,11 @@ public: const AttributeInfo &get_attribute_info(const std::string &) const; int get_attribute_location(const std::string &) const; - void bind() const; - static void unbind(); + unsigned get_id() const { return id; } + + void set_debug_name(const std::string &); +private: + void set_stage_debug_name(unsigned, Stage); }; } // namespace GL