make image.region readable

This commit is contained in:
MihailRis
2025-04-26 22:22:17 +03:00
parent 1c8c461904
commit 3e336575e8
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -80,3 +80,7 @@ void Image::setTexture(const std::string& name) {
void Image::setRegion(const UVRegion& region) {
this->region = region;
}
const UVRegion& Image::getRegion() const {
return region;
}
+1
View File
@@ -19,5 +19,6 @@ namespace gui {
virtual const std::string& getTexture() const;
virtual void setTexture(const std::string& name);
void setRegion(const UVRegion& region);
const UVRegion& getRegion() const;
};
}