mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
assets-related refactor
This commit is contained in:
parent
216e38e411
commit
befc9cf09c
14 changed files with 242 additions and 202 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue