assets-related refactor

This commit is contained in:
MihailRis 2024-04-10 17:44:17 +03:00
parent 216e38e411
commit befc9cf09c
14 changed files with 242 additions and 202 deletions

View file

@ -20,6 +20,8 @@ public:
Atlas(ImageData* image, std::unordered_map<std::string, UVRegion> regions);
~Atlas();
void prepare();
bool has(const std::string& name) const;
const UVRegion& get(const std::string& name) const;
@ -27,7 +29,6 @@ public:
ImageData* getImage() const;
};
struct atlasentry {
std::string name;
std::shared_ptr<ImageData> image;