16 lines
223 B
C
16 lines
223 B
C
#pragma once
|
|
|
|
#include<SDL2/SDL.h>
|
|
#include<SDL2/SDL_ttf.h>
|
|
|
|
typedef struct Button
|
|
{
|
|
const char*label;
|
|
size_t x;
|
|
size_t y;
|
|
size_t w;
|
|
size_t h;
|
|
} Button;
|
|
|
|
void button_draw(SDL_Renderer*ren,TTF_Font*font,Button*button);
|