diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-10 12:13:55 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-10 12:13:55 +0200 |
| commit | aea23b389a5eba09b3865209a08843e66481dd54 (patch) | |
| tree | 4840787b9cdebaa998808ef1399a4bf4c76a75a3 /inc | |
| download | cardioid-aea23b389a5eba09b3865209a08843e66481dd54.tar.gz cardioid-aea23b389a5eba09b3865209a08843e66481dd54.tar.bz2 cardioid-aea23b389a5eba09b3865209a08843e66481dd54.zip | |
Initial commit, SDL boilerplate
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/graphics.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdbool.h> +# include <SDL2/SDL.h> + +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 |
