X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframebuffer.h;h=fd7b8eb4d17ccffd2f829182dd55d52837187dcb;hp=d2029022d94b6fee2d0380d43a18dbff90338a63;hb=b9e720f36185c6fe4d39a1056ecb88dec0ce950d;hpb=4080571d24c1734a9188ee7fac38cf3180325adf diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index d2029022..fd7b8eb4 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -34,7 +34,7 @@ class Framebuffer: public FramebufferBackend { friend FramebufferBackend; -private: +protected: struct Attachment { Texture *tex = 0; @@ -72,7 +72,7 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } -private: +protected: void update() const; void check_size(); void set_attachment(FrameAttachment, Texture &, unsigned, int, unsigned); @@ -99,8 +99,6 @@ public: void attach_layered(FrameAttachment attch, TextureCube &, unsigned level = 0); void detach(FrameAttachment attch); - void resize(const WindowView &); - /** Ensures that the framebuffer is complete, throwing an exception if it isn't. */ void require_complete() const; @@ -108,8 +106,6 @@ public: void refresh() const { if(dirty) update(); } using FramebufferBackend::set_debug_name; - - static Framebuffer &system(); };