Add getters for RenderTarget width and height
authorMikko Rasa <tdb@tdb.fi>
Fri, 31 May 2019 19:30:20 +0000 (22:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 31 May 2019 19:30:20 +0000 (22:30 +0300)
source/rendertarget.h

index 35b2f00d205877b57bad08147a1058f8ae9d6a63..2138d9ce31b202a7a0f896ebf7d0cb6b08d35d6f 100644 (file)
@@ -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);