c866d7842f399b1a1a34411bf5f38782f4ae6a6c
[winnie] / src / gfx.h
1 #ifndef GFX_H_
2 #define GFX_H_
3
4 #include "geom.h"
5
6 bool init_gfx();
7 void destroy_gfx();
8
9 unsigned char *get_framebuffer();
10 Rect get_screen_size();
11 int get_color_depth();
12
13 void clear_screen(int r, int g, int b);
14 void fill_rect(const Rect &rect, int r, int g, int b);
15
16 void set_cursor_visibility(bool visible);
17
18 void blit(unsigned char *src_img, const Rect &src_rect, unsigned char* dest_img,
19                 const Rect &dest_rect, int dest_x, int dest_y);
20
21 void blit_key(unsigned char *src_img, const Rect &src_rect, unsigned char* dest_img,
22                 const Rect &dest_rect, int dest_x, int dest_y, int key_r, int key_g, int key_b);
23
24 void gfx_update();
25
26 #endif //GFX_H_