X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frendertarget.h;h=7d796a3cefe80540a409f5e6b80a6535aefa87f0;hp=35b2f00d205877b57bad08147a1058f8ae9d6a63;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=fce91f4eda14f5f9e9a7490835b7e62c05243572 diff --git a/source/rendertarget.h b/source/rendertarget.h index 35b2f00d..7d796a3c 100644 --- a/source/rendertarget.h +++ b/source/rendertarget.h @@ -63,6 +63,7 @@ private: Framebuffer fbo; public: + RenderTarget(unsigned, unsigned, RenderOutput); RenderTarget(unsigned, unsigned, const RenderTargetFormat & = (RENDER_COLOR, RENDER_DEPTH)); RenderTarget(unsigned, unsigned, unsigned, const RenderTargetFormat & = (RENDER_COLOR, RENDER_DEPTH)); private: @@ -72,6 +73,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);