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/tilesdl.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/tilesdl.h')
-rw-r--r-- | crawl-ref/source/tilesdl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.h b/crawl-ref/source/tilesdl.h index b4fd782e97..941d80650b 100644 --- a/crawl-ref/source/tilesdl.h +++ b/crawl-ref/source/tilesdl.h @@ -76,6 +76,7 @@ struct MouseEvent }; class FontWrapper; +class crawl_view_buffer; class TilesFramework { @@ -85,7 +86,7 @@ public: bool initialise(); void shutdown(); - void load_dungeon(unsigned int *tileb, const coord_def &gc); + void load_dungeon(const crawl_view_buffer &vbuf, const coord_def &gc); void load_dungeon(const coord_def &gc); int getch_ck(); void resize(); |