3 static struct game_screen *screens[16];
4 static int num_screens;
6 static struct game_screen *stack;
12 for(i=0; i<num_screens; i++) {
13 if(screens[i]->init() == -1) {
20 void cleanup_screens(void)
24 for(i=0; i<num_screens; i++) {
25 screens[i]->cleanup();
29 void reshape_screens(int x, int y)
31 struct game_screen *s = stack;
38 void push_screen(struct game_screen *s)
47 struct game_screen *s;
49 if(!stack->next) return -1;