]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Use default member initializers for simple types
[libs/gl.git] / source / core / framebuffer.h
index 18e48f2022b6b1197129a6de6c57ee8a37cf38b3..e370b7c7f38976c2211c496c4c6c5e640f835e07 100644 (file)
@@ -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 &);