]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Use friend declarations to access OpenGL IDs of objects
[libs/gl.git] / source / core / program.h
index ecfe1a1991232e0d686c68363d7f1f9b5e8b847c..1ca146f1e998c0fd0d05221a4dab0b66a6da31e6 100644 (file)
@@ -19,6 +19,8 @@ generated with a set of standard features.
 */
 class Program
 {
+       friend class PipelineState;
+
 public:
        class Loader: public DataFile::CollectionObjectLoader<Program>
        {
@@ -168,8 +170,6 @@ public:
        const AttributeInfo &get_attribute_info(const std::string &) const;
        int get_attribute_location(const std::string &) const;
 
-       unsigned get_id() const { return id; }
-
        void set_debug_name(const std::string &);
 private:
        void set_stage_debug_name(unsigned, Stage);