add 'region' image property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user