]> git.tdb.fi Git - libs/gl.git/commitdiff
Add methods to get Framebuffer size
authorMikko Rasa <tdb@tdb.fi>
Mon, 4 Apr 2011 16:45:47 +0000 (16:45 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 4 Apr 2011 16:45:47 +0000 (16:45 +0000)
source/framebuffer.h

index ea462bf6ad432bd78da37afef4fa77103bc676ff..70d32d7f1ab5e704a1e8685ddcba46970548f9e1 100644 (file)
@@ -105,6 +105,9 @@ public:
        Framebuffer();
        ~Framebuffer();
 
+       unsigned get_width() const { return width; }
+       unsigned get_height() const { return height; }
+
 private:
        void update_attachment(unsigned) const;
        void check_size();