mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add 'region' image property
This commit is contained in:
parent
032b5ae9dc
commit
79528a44ea
4 changed files with 20 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue