X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fframebuffer.h;h=5476596317000dbecd53eca3146adce3dcc4407c;hb=63458ee3bedacf4d498074fcec15600a4932ae7b;hp=b805721640f26f5ce764cf867f689a2a9411cb69;hpb=f4f81f1d86d50b29b9a44b237f67c6f5ad8f0523;p=libs%2Fgl.git diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index b8057216..54765963 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -5,6 +5,7 @@ #include "color.h" #include "framebuffer_backend.h" #include "frameformat.h" +#include "rect.h" #include "texturecube.h" namespace Msp { @@ -49,6 +50,7 @@ protected: std::vector attachments; unsigned width = 0; unsigned height = 0; + unsigned layers = 0; mutable unsigned dirty = 0; Framebuffer(bool); @@ -71,6 +73,8 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } + Rect get_rect() const { return Rect(0, 0, width, height); } + unsigned get_layers() const { return layers; } protected: void update() const;