mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
world previews demo
This commit is contained in:
parent
5afa5304ff
commit
6e2bc9ca95
24 changed files with 153 additions and 59 deletions
|
|
@ -41,8 +41,8 @@ ImageData* Atlas::getImage() const {
|
|||
return image.get();
|
||||
}
|
||||
|
||||
void AtlasBuilder::add(std::string name, ImageData* image) {
|
||||
entries.push_back(atlasentry{name, std::shared_ptr<ImageData>(image)});
|
||||
void AtlasBuilder::add(std::string name, std::unique_ptr<ImageData> image) {
|
||||
entries.push_back(atlasentry{name, std::shared_ptr<ImageData>(image.release())});
|
||||
names.insert(name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue