X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=fbgfx;a=blobdiff_plain;f=src%2Fscreen.h;fp=src%2Fscreen.h;h=9a449e8a4e2529ca9e3dd69983fee180e380fa89;hp=0000000000000000000000000000000000000000;hb=70c067c2da05fb71f3d2de115cefbc225eff3667;hpb=21180fdf54f0c578af0959df088de308ce25ca61 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_ */