X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_graphics.h;h=0f953cf0b0d798403e3d10e71646aa3fdfe5e82f;hb=7f40069aab8fb0a1055c82ce17502f5ec81fefdd;hp=15a24b99eb93942c4f2049bf01e0c9e22ef1d6fb;hpb=7fb08abe58b2c84e36a5ed247d2103e08ae98aa4;p=rocksndiamonds.git diff --git a/src/game_bd/bd_graphics.h b/src/game_bd/bd_graphics.h index 15a24b99..0f953cf0 100644 --- a/src/game_bd/bd_graphics.h +++ b/src/game_bd/bd_graphics.h @@ -17,17 +17,15 @@ #ifndef BD_GRAPHICS_H #define BD_GRAPHICS_H -#include - #include "bd_cave.h" #include "bd_gameplay.h" extern Bitmap *gd_screen_bitmap; -extern const Uint8 *gd_keystate; +extern const unsigned char *gd_keystate; -typedef guint32 GdColor; +typedef unsigned int GdColor; void set_cell_size(int s); void set_play_area(int w, int h); @@ -37,6 +35,10 @@ int get_play_area_h(void); void gd_init_keystate(void); +void gd_prepare_tile_bitmap(GdCave *cave, Bitmap *bitmap, int scale_down_factor); +void gd_set_tile_bitmap_reference(Bitmap *bitmap); +Bitmap *gd_get_tile_bitmap(Bitmap *bitmap); + int gd_drawcave(Bitmap *dest, GdGame *gameplay, boolean); boolean gd_scroll(GdGame *gameplay, boolean exact_scroll, boolean immediate); void gd_scroll_to_origin(void);