mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
feat: canvas from texture atlas element
This commit is contained in:
parent
497160a5b9
commit
d9f2d54bf0
10 changed files with 126 additions and 28 deletions
|
|
@ -33,6 +33,8 @@ public:
|
|||
void extrude(int x, int y, int w, int h);
|
||||
void fixAlphaColor();
|
||||
|
||||
std::unique_ptr<ImageData> cropped(int x, int y, int width, int height) const;
|
||||
|
||||
ubyte* getData() const {
|
||||
return data.get();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue