summaryrefslogtreecommitdiffstats
path: root/src/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h
new file mode 100644
index 0000000..372a285
--- /dev/null
+++ b/src/viewport.h
@@ -0,0 +1,16 @@
+#ifndef VIEWPORT_H
+#define VIEWPORT_H
+
+#include <SDL.h>
+
+struct viewport {
+ int x;
+ int y;
+ int w;
+ int h;
+ SDL_Surface *screen;
+};
+
+struct viewport *init_viewport(int width, int height, int bpp);
+
+#endif