X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fobject.h;h=b6bd3a69d9b5c00ff74a14233963a11787eb70fb;hb=c8520aa336e92f2eaf9a38c3430c608520a90324;hp=dea389e4b8ae4d0d841ccbea333341bbc2a40ef9;hpb=c0b7d6ee4a7478f5aecb1504429ec1fc846d64ed;p=libs%2Fgl.git diff --git a/source/render/object.h b/source/render/object.h index dea389e4..b6bd3a69 100644 --- a/source/render/object.h +++ b/source/render/object.h @@ -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 lods; Geometry::BoundingSphere bounding_sphere; - bool lod0_watched; + bool lod0_watched = false; static const Matrix identity_matrix;