From 5f0fce4191309e9526b7109a0d87c092ce6a4193 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Thu, 18 Feb 2021 14:14:23 +0100 Subject: main --- render/button.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 render/button.h (limited to 'render/button.h') diff --git a/render/button.h b/render/button.h new file mode 100644 index 0000000..b8d10b6 --- /dev/null +++ b/render/button.h @@ -0,0 +1,16 @@ +#ifndef BUTTON_H +#define BUTTON_H + +#include +#include + +typedef struct { + char txt[32]; + int pad; + float pos[2]; +} button; + +bool mouse_in_button (float pt[], txtd *t, button *b); +void render_button (SDL_Renderer* rend, txtd *t, button *b); + +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf