]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/scene.h
Adjust naming of instances in Scene loader
[libs/gl.git] / source / render / scene.h
index e55de1a84323529dfe4300c6ebec210d52c8664e..96ecee97ef559f7f15ff6b4595b7c92046ae25ba 100644 (file)
@@ -25,7 +25,8 @@ protected:
 
        private:
                ContentMap *content;
-               unsigned inst_counter;
+
+               static unsigned inline_counter;
 
        public:
                Loader(Scene &s, Collection &c): Loader(s, c, 0) { }
@@ -54,12 +55,12 @@ protected:
        mutable Matrix culling_matrix;
        mutable Vector4 frustum_edges[6];
 
-       Scene() { }
+       Scene() = default;
 private:
        Scene(const Scene &);
        Scene &operator=(const Scene &);
 public:
-       virtual ~Scene() { }
+       virtual ~Scene() = default;
 
        virtual void add(Renderable &) = 0;
        virtual void remove(Renderable &) = 0;