2 * Copyright (c) 2007, 2008, 2009, Czirkos Zoltan <cirix@fw.hu>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 #include "bd_gameplay.h"
24 extern Bitmap *gd_screen_bitmap;
26 extern const unsigned char *gd_keystate;
28 typedef unsigned int GdColor;
30 void set_cell_size(int s);
31 void set_play_area(int w, int h);
33 int get_play_area_w(void);
34 int get_play_area_h(void);
36 void gd_init_keystate(void);
38 void gd_prepare_tile_bitmap(GdCave *cave, Bitmap *bitmap, int scale_down_factor);
39 void gd_set_tile_bitmap_reference(Bitmap *bitmap);
40 Bitmap *gd_get_tile_bitmap(Bitmap *bitmap);
42 int gd_drawcave(Bitmap *dest, GdGame *gameplay, boolean);
43 boolean gd_scroll(GdGame *gameplay, boolean exact_scroll, boolean immediate);
44 void gd_scroll_to_origin(void);
45 int get_scroll_x(void);
46 int get_scroll_y(void);
48 Bitmap *gd_get_title_screen_bitmap(void);
50 #endif // BD_GRAPHICS_H