X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fframebuffer.h;h=262e4248c3e251ddeb86e99ef335dc4e4ad501a3;hb=b8b7c6b251cace40021bdfacc6aa17242aa51e1d;hp=18e48f2022b6b1197129a6de6c57ee8a37cf38b3;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index 18e48f20..262e4248 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -41,11 +41,10 @@ class Framebuffer: public FramebufferBackend private: struct Attachment { - Texture *tex; - unsigned level; - int layer; + Texture *tex = 0; + unsigned level = 0; + int layer = 0; - Attachment(); void set(Texture &, unsigned, int); void clear(); }; @@ -68,10 +67,6 @@ public: /** Creates a framebuffer and sets its format. */ Framebuffer(const FrameFormat &); -private: - void init(); - -public: /** Sets the format of the framebuffer. Once the format is set, it can't be changed. */ void set_format(const FrameFormat &); @@ -85,8 +80,8 @@ private: void update() const; void check_size(); void set_attachment(FrameAttachment, Texture &, unsigned, int, unsigned); -public: +public: /** Attaches a texture to the framebuffer. Only the attachment point portion of attch is considered; pixel format is ignored. The framebuffer must have a format and the format of the texture must match that defined