X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpartcache.h;h=969912431271d501b68267f9f09bb7b05f0427b6;hb=caa04d76bc031dd0c4a4157732deb340d934ceeb;hp=86a3f364abe21260395493f40580d278f5b5775c;hpb=319cde3c06181ba1c3619567525002926d8b4889;p=libs%2Fgltk.git diff --git a/source/partcache.h b/source/partcache.h index 86a3f36..9699124 100644 --- a/source/partcache.h +++ b/source/partcache.h @@ -25,12 +25,18 @@ public: typedef std::list PartList; private: + bool rebuilding; PartList parts; + PartList::iterator next; + PartList::iterator current; public: - void clear(); + PartCache(); + + void begin_rebuild(); void insert_special(const Part &); GL::Mesh &create_mesh(const Part &, const GL::Texture2D &); + void end_rebuild(); const PartList &get_parts() const { return parts; } };