diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-05-29 11:09:17 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-05-30 08:50:37 -0400 |
commit | 575cfb8db1e87084ae13b9799f74a3b6be75c0c8 (patch) | |
tree | 1274dea0786f6d943de3a7ec360fc6ec1193e25f /crawl-ref/source/tiles.h | |
parent | 7e9196891f4283c40a8db3947f6db8a853724c44 (diff) | |
download | crawl-ref-575cfb8db1e87084ae13b9799f74a3b6be75c0c8.tar.gz crawl-ref-575cfb8db1e87084ae13b9799f74a3b6be75c0c8.zip |
Refactor crawl view buffer.
Rather than using explicit offsets (e.g. buffy[0] and buffy[1]), store
colour, glyph, and tiles for each cell in the view buffer in a struct
with named members. This refactoring will also theoretically allow for
the tiles version to display glyphs instead of tiles.
Diffstat (limited to 'crawl-ref/source/tiles.h')
-rw-r--r-- | crawl-ref/source/tiles.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/tiles.h b/crawl-ref/source/tiles.h index 84cf1934d4..398014cf9b 100644 --- a/crawl-ref/source/tiles.h +++ b/crawl-ref/source/tiles.h @@ -82,9 +82,8 @@ void tile_place_ray(const coord_def& gc, bool in_range); void tile_draw_rays(bool resetCount); void tile_clear_buf(); -void tile_apply_animations(screen_buffer_t bg, tile_flavour *flv); -void tile_apply_properties(const coord_def &gc, screen_buffer_t *fg, - screen_buffer_t *bg); +void tile_apply_animations(tileidx_t bg, tile_flavour *flv); +void tile_apply_properties(const coord_def &gc, tileidx_t *fg, tileidx_t *bg); // Tile Inventory display void tile_draw_inv(int flag = -1); |