]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Use friend declarations to access OpenGL IDs of objects
[libs/gl.git] / source / core / framebuffer.h
index f2fbfea40e19bca9577cd97a540d6bfcfb3b1673..2f867e6c591ec69706df22fc2a90bbeef52575f8 100644 (file)
@@ -62,6 +62,9 @@ the GL_EXT_framebuffer_blit extension.
 */
 class Framebuffer
 {
+       friend class Commands;
+       friend class PipelineState;
+
 private:
        struct Attachment
        {
@@ -139,8 +142,6 @@ public:
 
        void refresh() const { if(dirty) update(); }
 
-       unsigned get_id() const { return id; }
-
        void set_debug_name(const std::string &);
 
        static Framebuffer &system();