diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-18 14:14:23 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-18 14:14:23 +0100 |
commit | 5f0fce4191309e9526b7109a0d87c092ce6a4193 (patch) | |
tree | 105257f876551814aa74a0760ec116bd1bf307a5 /render/button.h | |
parent | ead78d51e662057467b79d3a65b20c4ba83cbf07 (diff) |
main
Diffstat (limited to 'render/button.h')
-rw-r--r-- | render/button.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 <SDL.h> +#include <render_text.h> + +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 |