From: Mikko Rasa Date: Mon, 4 Apr 2011 16:45:47 +0000 (+0000) Subject: Add methods to get Framebuffer size X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=6c2cb15dca6c24642f5026b06e6168c0d820355f Add methods to get Framebuffer size --- diff --git a/source/framebuffer.h b/source/framebuffer.h index ea462bf6..70d32d7f 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -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();