From: Mikko Rasa Date: Fri, 31 May 2019 19:30:20 +0000 (+0300) Subject: Add getters for RenderTarget width and height X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=b38a4cba9d2a9963a0937757eff9e955f18ddf2a Add getters for RenderTarget width and height --- diff --git a/source/rendertarget.h b/source/rendertarget.h index 35b2f00d..2138d9ce 100644 --- a/source/rendertarget.h +++ b/source/rendertarget.h @@ -72,6 +72,8 @@ private: public: ~RenderTarget(); + unsigned get_width() const { return width; } + unsigned get_height() const { return height; } const RenderTargetFormat &get_format() const { return format; } Framebuffer &get_framebuffer() { return fbo; } void set_texture_filter(TextureFilter);