aboutsummaryrefslogtreecommitdiff
path: root/inc/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/graphics.h')
-rw-r--r--inc/graphics.h18
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