#ifndef BD_GRAPHICS_H
#define BD_GRAPHICS_H
-#include <SDL.h>
-
#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);
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);