From 3da80cb1474b455f4ed3d27aa72441fd145a9898 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 23 Mar 2016 16:02:34 +0100 Subject: start adding a gfx interface --- gfx.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gfx.h (limited to 'gfx.h') diff --git a/gfx.h b/gfx.h new file mode 100644 index 0000000..77ab172 --- /dev/null +++ b/gfx.h @@ -0,0 +1,20 @@ +#include + +typedef struct gfxstate gfxstate; + +struct gfxstate { + /* info */ + uint32_t hdisplay; + uint32_t vdisplay; + uint32_t stride; + + uint32_t bits_per_pixel; + uint32_t rlen, glen, blen, tlen; + uint32_t roff, goff, boff, toff; + + /* calls */ + void (*restore_display)(void); + + /* FIXME: legacy */ + int fb_fd; +}; -- cgit