aboutsummaryrefslogtreecommitdiff
path: root/render/button.h
blob: e4ff1895fa23e6faae6ab1000c1f3dda7ac4073e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef BUTTON_H
#define BUTTON_H

#include <SDL2/SDL.h> 
#include "render_text.h"

typedef struct {
    char txt[32];
    int pad;
    float pos[2];
} button;

int mouse_in_button (float pt[], txtd *t, button *b);
void render_button (SDL_Renderer* rend, txtd *t, button *b);
    
#endif