aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-01-12 20:41:56 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-01-12 20:41:56 +1300
commit58bef85206c7cce153400e51b247e2476e9e65a4 (patch)
tree9e9856c8c554545c44834c89fe0086f9a36abf22 /window.h
downloadtetris-58bef85206c7cce153400e51b247e2476e9e65a4.tar.xz
Initial commit of rough-arse Tetris
Diffstat (limited to 'window.h')
-rw-r--r--window.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/window.h b/window.h
new file mode 100644
index 0000000..0c97b86
--- /dev/null
+++ b/window.h
@@ -0,0 +1,20 @@
+#ifndef WINDOW_H
+#define WINDOW_H
+
+#include <SDL.h>
+#include <stdbool.h>
+
+struct window {
+ SDL_Window *window;
+ SDL_Renderer *renderer;
+ SDL_Surface *surface;
+ unsigned int height;
+ unsigned int width;
+ char* title;
+};
+
+int display_init(struct window *wobj);
+void display_stop(struct window *wobj);
+
+
+#endif