summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilebuf.h
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-05-24 00:19:30 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-05-25 17:05:48 +0100
commit8f2e336bb97bcaf7a0193c443bb682424dc52b7e (patch)
tree0367ec5a5d7ecf353212e951622526694cf9ef82 /crawl-ref/source/tilebuf.h
parent60f276de766666d1f2852beb8c5f3a2159ce8750 (diff)
downloadcrawl-ref-8f2e336bb97bcaf7a0193c443bb682424dc52b7e.tar.gz
crawl-ref-8f2e336bb97bcaf7a0193c443bb682424dc52b7e.zip
Implement cloud alpha overlay tiles layer
This works very well for the most part with two small problems: - Webtiles will not support this yet (in probability, this will stop any clouds showing in webtiles) - Floor items interact strangely and will draw over the top of clouds instead of behind them
Diffstat (limited to 'crawl-ref/source/tilebuf.h')
-rw-r--r--crawl-ref/source/tilebuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilebuf.h b/crawl-ref/source/tilebuf.h
index 8e0402868d..911b906368 100644
--- a/crawl-ref/source/tilebuf.h
+++ b/crawl-ref/source/tilebuf.h
@@ -87,6 +87,8 @@ public:
void add(tileidx_t idx, int x, int y, int z = 0, bool submerged = false,
bool ghost = false, int ox = 0, int oy = 0, int ymax = -1);
+ void add_alpha(tileidx_t idx, int x, int y, int z,
+ int ox, int oy, int ymax, int alpha);
void draw() const;
void clear();