]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Store simpler states by value in PipelineState
[libs/gl.git] / source / core / framebuffer.h
index 1a13ca5bc9dbc979fa4d9bbcfcee47a1eed9e831..5476596317000dbecd53eca3146adce3dcc4407c 100644 (file)
@@ -5,6 +5,7 @@
 #include "color.h"
 #include "framebuffer_backend.h"
 #include "frameformat.h"
+#include "rect.h"
 #include "texturecube.h"
 
 namespace Msp {
@@ -72,6 +73,7 @@ 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: