X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fpartcache.h;fp=source%2Fpartcache.h;h=a10efdd084e2a9b5c463fd3ac555886635bb7c36;hp=71684738f0980922de8db5346d88249f53a058b5;hb=394e5c9969a30b604bfaf78fc05a8c2d5c98ab5b;hpb=90d5f5f2ebaeb8aaa4aa47a0c2207f96758cba8c diff --git a/source/partcache.h b/source/partcache.h index 7168473..a10efdd 100644 --- a/source/partcache.h +++ b/source/partcache.h @@ -1,6 +1,7 @@ #ifndef MSP_GLTK_PARTCACHE_H_ #define MSP_GLTK_PARTCACHE_H_ +#include #include #include #include "mspgltk_api.h" @@ -14,12 +15,7 @@ struct CachedPart { const Part *part = nullptr; const GL::Texture2D *texture = nullptr; - GL::Mesh *mesh = nullptr; - - CachedPart() = default; - CachedPart(CachedPart &&); - CachedPart &operator=(CachedPart &&); - ~CachedPart(); + std::unique_ptr mesh; }; class MSPGLTK_API PartCache