#ifndef MSP_GLTK_PARTCACHE_H_
#define MSP_GLTK_PARTCACHE_H_
+#include <memory>
#include <msp/gl/mesh.h>
#include <msp/gl/texture2d.h>
#include "mspgltk_api.h"
{
const Part *part = nullptr;
const GL::Texture2D *texture = nullptr;
- GL::Mesh *mesh = nullptr;
-
- CachedPart() = default;
- CachedPart(CachedPart &&);
- CachedPart &operator=(CachedPart &&);
- ~CachedPart();
+ std::unique_ptr<GL::Mesh> mesh;
};
class MSPGLTK_API PartCache