From aea23b389a5eba09b3865209a08843e66481dd54 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 10 May 2020 12:13:55 +0200 Subject: Initial commit, SDL boilerplate --- inc/graphics.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 inc/graphics.h (limited to 'inc') diff --git a/inc/graphics.h b/inc/graphics.h new file mode 100644 index 0000000..efe7dcd --- /dev/null +++ b/inc/graphics.h @@ -0,0 +1,18 @@ +#ifndef GRAPHICS_H +# define GRAPHICS_H + +# include +# include + +typedef struct +{ + SDL_Window *window; + SDL_Renderer *renderer; + bool running; +} t_state; + +void graphics_init(t_state *state, int width, int height); +void graphics_quit(t_state *state); +void graphics_run(t_state *state); + +#endif -- cgit