add missing tools/pngdump to the repo
[gbajam22] / src / game.h
index b290634..fda696d 100644 (file)
@@ -1,9 +1,26 @@
 #ifndef GAME_H_
 #define GAME_H_
 
-void (*screen_vblank)(void);
+#include <stdint.h>
 
-void menuscr(void);
-void gamescr(void);
+struct screen {
+       char *name;
+       int (*start)(void);
+       void (*stop)(void);
+       void (*frame)(void);
+       void (*vblank)(void);
+};
+
+extern struct screen *curscr;
+
+int init_screens(void);
+int change_screen(struct screen *scr);
+struct screen *find_screen(const char *name);
+
+int gba_colors;
+
+#ifndef BUILD_GBA
+int32_t view_dtheta, view_dphi, view_zoom;
+#endif
 
 #endif /* GAME_H_ */