diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-10 14:08:07 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-10 14:08:07 +0200 |
| commit | 6d9c284a24555a7df0b37661ff3c5491d6d0449a (patch) | |
| tree | 58d7958e7e6f59181463343891b1a590016cf5ef /inc/graphics.h | |
| parent | aea23b389a5eba09b3865209a08843e66481dd54 (diff) | |
| download | cardioid-6d9c284a24555a7df0b37661ff3c5491d6d0449a.tar.gz cardioid-6d9c284a24555a7df0b37661ff3c5491d6d0449a.tar.bz2 cardioid-6d9c284a24555a7df0b37661ff3c5491d6d0449a.zip | |
First primitive cardioid drawing
Diffstat (limited to 'inc/graphics.h')
| -rw-r--r-- | inc/graphics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/graphics.h b/inc/graphics.h index efe7dcd..bb7e491 100644 --- a/inc/graphics.h +++ b/inc/graphics.h @@ -4,14 +4,17 @@ # include <stdbool.h> # include <SDL2/SDL.h> +# include "cardioid.h" + typedef struct { SDL_Window *window; SDL_Renderer *renderer; + t_cardioid *cardioid; bool running; } t_state; -void graphics_init(t_state *state, int width, int height); +void graphics_init(t_state *state, int width, int height, t_cardioid *cardioid); void graphics_quit(t_state *state); void graphics_run(t_state *state); |
