aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
blob: 2ee61a86ab40cd8eb051d49d1f5636f91e4f3edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <inttypes.h>

typedef struct gfxstate gfxstate;

struct gfxstate {
    /* info */
    uint32_t hdisplay;
    uint32_t vdisplay;
    uint32_t stride;
    uint8_t  *mem;

    uint32_t bits_per_pixel;
    uint32_t rlen, glen, blen, tlen;
    uint32_t roff, goff, boff, toff;

    /* calls */
    void (*restore_display)(void);
    void (*cleanup_display)(void);

    /* FIXME: legacy */
    int tty_fd;
    int fb_fd;
};