Skip to content

Commit

Permalink
add getWidth and getHeight to lua api
Browse files Browse the repository at this point in the history
why not?
  • Loading branch information
penguinencounter committed Sep 13, 2024
1 parent 64f57e8 commit 4d5a611
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ public NativeImage copy() {
return image;
}

@LuaWhitelist
public int getWidth() {
return texture.getWidth();
}

@LuaWhitelist
public int getHeight() {
return texture.getHeight();
}
Expand Down

0 comments on commit 4d5a611

Please sign in to comment.