]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/object.h
Use default member initializers for simple types
[libs/gl.git] / source / render / object.h
index dea389e4b8ae4d0d841ccbea333341bbc2a40ef9..b6bd3a69d9b5c00ff74a14233963a11787eb70fb 100644 (file)
@@ -37,7 +37,7 @@ private:
                LevelOfDetail &lod;
 
        public:
-               LodLoader(Object &, unsigned, Collection *);
+               LodLoader(Object &, unsigned, Collection &);
 
        private:
                void mesh(const std::string &);
@@ -50,10 +50,8 @@ public:
        class Loader: public LodLoader
        {
        public:
-               Loader(Object &o): Loader(o, 0) { }
-               Loader(Object &o, Collection &c): Loader(o, &c) { }
+               Loader(Object &, Collection &);
        private:
-               Loader(Object &, Collection *);
                virtual void finish();
 
                void bounding_sphere_hint(float, float, float, float);
@@ -69,7 +67,7 @@ private:
 
        std::vector<LevelOfDetail> lods;
        Geometry::BoundingSphere<float, 3> bounding_sphere;
-       bool lod0_watched;
+       bool lod0_watched = false;
 
        static const Matrix identity_matrix;