mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
make image.region readable
This commit is contained in:
parent
1c8c461904
commit
3e336575e8
3 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue