X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpartcache.h;h=137bce4c37539a8c032f27b36cff0c35afc89f58;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hp=9dc71bf184c8652de6b5e4939a8bab9224a2f512;hpb=56c41b294aa47a38ac3e1be70d4868f260cb4274;p=libs%2Fgltk.git diff --git a/source/partcache.h b/source/partcache.h index 9dc71bf..137bce4 100644 --- a/source/partcache.h +++ b/source/partcache.h @@ -12,11 +12,10 @@ class Part; struct CachedPart { - const Part *part; - const GL::Texture2D *texture; - GL::Mesh *mesh; + const Part *part = nullptr; + const GL::Texture2D *texture = nullptr; + GL::Mesh *mesh = nullptr; - CachedPart(); ~CachedPart(); }; @@ -36,14 +35,12 @@ public: typedef std::list PartList; private: - bool rebuilding; + bool rebuilding = false; PartList parts; PartList::iterator next; PartList::iterator current; public: - PartCache(); - void begin_rebuild(); void insert_special(const Part &); GL::Mesh &create_mesh(const Part &, const GL::Texture2D &);