From b38a4cba9d2a9963a0937757eff9e955f18ddf2a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 31 May 2019 22:30:20 +0300 Subject: [PATCH] Add getters for RenderTarget width and height --- source/rendertarget.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.45.2