X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpartcache.h;h=9dc71bf184c8652de6b5e4939a8bab9224a2f512;hb=b4a3d651f57c46507aaa99a71a14fea15f0e430d;hp=969912431271d501b68267f9f09bb7b05f0427b6;hpb=caa04d76bc031dd0c4a4157732deb340d934ceeb;p=libs%2Fgltk.git diff --git a/source/partcache.h b/source/partcache.h index 9699124..9dc71bf 100644 --- a/source/partcache.h +++ b/source/partcache.h @@ -3,6 +3,7 @@ #include #include +#include "mspgltk_api.h" namespace Msp { namespace GLtk { @@ -19,9 +20,19 @@ struct CachedPart ~CachedPart(); }; -class PartCache +class MSPGLTK_API PartCache { public: + class Rebuild + { + private: + PartCache &cache; + + public: + Rebuild(PartCache &c): cache(c) { cache.begin_rebuild(); } + ~Rebuild() { cache.end_rebuild(); } + }; + typedef std::list PartList; private: