blob: b8d10b6b1fde65a6631f1e3196c1e644a45e02d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|