summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiles.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-07-06 17:47:23 +0200
committerFlorian Diebold <flodiebold@gmail.com>2011-07-06 17:47:23 +0200
commit5a04b52ff4f7b43a9fdd1d004c49b6771efe6a55 (patch)
treedbee5797df90d444ba194dd1cf47c6b5a74740c8 /crawl-ref/source/tiles.h
parentdd2a795074db045f4389bda4aca67fe711665630 (diff)
downloadcrawl-ref-5a04b52ff4f7b43a9fdd1d004c49b6771efe6a55.tar.gz
crawl-ref-5a04b52ff4f7b43a9fdd1d004c49b6771efe6a55.zip
Clean up tilesdl.h.
tileweb.cc now has its own header file. This replicates the public TilesFramework interface, but the repetition seems better than having one header file littered with #ifdefs.
Diffstat (limited to 'crawl-ref/source/tiles.h')
-rw-r--r--crawl-ref/source/tiles.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/tiles.h b/crawl-ref/source/tiles.h
new file mode 100644
index 0000000000..8f9a0492ef
--- /dev/null
+++ b/crawl-ref/source/tiles.h
@@ -0,0 +1,15 @@
+/**
+ * @file
+ * @brief Tiles interface, either for SDL or web tiles
+**/
+
+#ifndef TILES_H
+#define TILES_H
+
+#ifdef USE_TILE_LOCAL
+ #include "tilesdl.h"
+#elif defined(USE_TILE_WEB)
+ #include "tileweb.h"
+#endif
+
+#endif