initial import
[dosrtxon] / src / screen.h
1 #ifndef SCREEN_H_
2 #define SCREEN_H_
3
4 struct screen {
5         char *name;
6
7         int (*init)(void);
8         void (*shutdown)(void);
9
10         void (*start)(long trans_time);
11         void (*stop)(long trans_time);
12
13         void (*draw)(void);
14
15         void (*keypress)(int key);
16 };
17
18 int scr_init(void);
19 void scr_shutdown(void);
20
21 void scr_update(void);
22 void scr_draw(void);
23 void scr_keypress(int key);
24
25 struct screen *scr_lookup(const char *name);
26 struct screen *scr_screen(int idx);
27 int scr_num_screens(void);
28 int scr_change(struct screen *s, long trans_time);
29
30 #endif  /* SCREEN_H_ */