mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
fix Image for non-existing textures in atlas
This commit is contained in:
parent
2dffdf757c
commit
71c754b039
4 changed files with 22 additions and 9 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <string>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
#include <unordered_map>
|
||||
#include "../../maths/UVRegion.hpp"
|
||||
#include "../../typedefs.hpp"
|
||||
|
|
@ -31,6 +32,7 @@ public:
|
|||
|
||||
bool has(const std::string& name) const;
|
||||
const UVRegion& get(const std::string& name) const;
|
||||
std::optional<UVRegion> getIf(const std::string& name) const;
|
||||
|
||||
Texture* getTexture() const;
|
||||
ImageData* getImage() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue