add 'region' image property

This commit is contained in:
MihailRis
2025-04-26 22:12:34 +03:00
parent 032b5ae9dc
commit 79528a44ea
4 changed files with 20 additions and 1 deletions
+5 -1
View File
@@ -55,7 +55,7 @@ void Image::draw(const DrawContext& pctx, const Assets& assets) {
0,
0,
0,
UVRegion(),
region,
false,
true,
calcColor()
@@ -76,3 +76,7 @@ const std::string& Image::getTexture() const {
void Image::setTexture(const std::string& name) {
texture = name;
}
void Image::setRegion(const UVRegion& region) {
this->region = region;
}