stb_image: update to 64fa9a3d of stb.git
[fbvis.git] / draw.h
blob4cdd476b5bb27a8efe549fc664e3b624261de155
1 /* framebuffer device */
2 #define FBDEV_PATH "/dev/fb0"
4 /* fb_mode() interpretation */
5 #define FBM_BPP(m) (((m) >> 16) & 0x0f)
6 #define FBM_COLORS(m) ((m) & 0x0fff)
8 /* main functions */
9 int fb_init(void);
10 void fb_free(void);
11 unsigned fb_mode(void);
12 void *fb_mem(int r);
13 int fb_rows(void);
14 int fb_cols(void);
15 void fb_cmap(void);
17 /* helper functions */
18 void fb_set(int r, int c, void *mem, int len);
19 unsigned fb_val(int r, int g, int b);