From 801df9c821db87cf2e50f486c63ff083b375eb7e Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Sat, 17 Feb 2024 14:58:35 -0700 Subject: Textured button drawing added --- src/ui.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index b1c00ce..d0e9aa3 100644 --- a/src/ui.c +++ b/src/ui.c @@ -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; } -- cgit v1.2.3