diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-17 21:58:35 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-17 21:58:35 +0000 |
commit | 801df9c821db87cf2e50f486c63ff083b375eb7e (patch) | |
tree | a15d9f7b44ce6e76e41919a5e6b8596d4979434a | |
parent | 5d1e44f80cd2fc8ebfb56096d9b2e82dee3ce39f (diff) | |
download | PenguinYippies-801df9c821db87cf2e50f486c63ff083b375eb7e.tar.gz PenguinYippies-801df9c821db87cf2e50f486c63ff083b375eb7e.tar.bz2 PenguinYippies-801df9c821db87cf2e50f486c63ff083b375eb7e.zip |
Textured button drawing added
-rw-r--r-- | src/ui.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -18,6 +18,14 @@ TexturedButton createTexturedButton(Texture* texture, Rectangle rect, const char bool updateTexturedButton(TexturedButton* button) { // Draw the button. + DrawTexturePro( + *button->texture, + (Rectangle){0.0, 0.0, button->texture->width, button->texture->height}, + button->rect, + Vector2Zero(), + 0.0, + button->backgroundColor + ); return button->isPressed; } |