diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-05-30 18:47:49 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-05-30 23:59:03 -0400 |
commit | 2d46f5c2e46e9affa62e46c7452ceeac0f0cf810 (patch) | |
tree | e46b904f5915ea27648a4ec51c1c7e5993833a4a /crawl-ref/source/tiletex.h | |
parent | 665bb697be4fe9af438f6847e1c7531ed00a9bdb (diff) | |
download | crawl-ref-2d46f5c2e46e9affa62e46c7452ceeac0f0cf810.tar.gz crawl-ref-2d46f5c2e46e9affa62e46c7452ceeac0f0cf810.zip |
Split dngn tile page into feat/floor/wall.
Due to the set of coloured floors and walls, it was getting perilously
large. The tiledef-dngn.h file now just indirectly calls the correct
feat/floor/wall functions depending on which tile index is used.
Diffstat (limited to 'crawl-ref/source/tiletex.h')
-rw-r--r-- | crawl-ref/source/tiletex.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/tiletex.h b/crawl-ref/source/tiletex.h index 187a5b62e5..ba5a15cb26 100644 --- a/crawl-ref/source/tiletex.h +++ b/crawl-ref/source/tiletex.h @@ -10,7 +10,9 @@ // The different texture types. enum TextureID { - TEX_DUNGEON, // dngn.png + TEX_FLOOR, // floor.png + TEX_WALL, // wall.png + TEX_FEAT, // feat.png TEX_PLAYER, // player.png TEX_DEFAULT, // main.png TEX_GUI, // gui.png @@ -34,6 +36,8 @@ struct tile_def int ymax; }; +TextureID get_dngn_tex(tileidx_t idx); + // Arbitrary post-load texture processing typedef bool(*tex_proc_func)(unsigned char *pixels, unsigned int w, unsigned int h); |