X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fscreen.h;fp=src%2Fscreen.h;h=9a449e8a4e2529ca9e3dd69983fee180e380fa89;hp=0000000000000000000000000000000000000000;hb=77c1d84c258ca14e1bba06ab711426668ff24290;hpb=8a64d603ee67cd98070360b40938e123ea845154 diff --git a/src/screen.h b/src/screen.h new file mode 100644 index 0000000..9a449e8 --- /dev/null +++ b/src/screen.h @@ -0,0 +1,25 @@ +#ifndef SCREEN_H_ +#define SCREEN_H_ + +struct screen { + char *name; + + int (*init)(void); + void (*shutdown)(void); + + void (*start)(long trans_time); + void (*stop)(long trans_time); + + void (*draw)(void); +}; + +int scr_init(void); +void scr_shutdown(void); + +void scr_update(void); +void scr_draw(void); + +struct screen *scr_lookup(const char *name); +int scr_change(struct screen *s, long trans_time); + +#endif /* SCREEN_H_ */