summaryrefslogtreecommitdiff
path: root/src/resources/map/tileinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-31 05:04:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-31 17:30:48 +0300
commit537085e221d25f710ed7162e1fc8add8ffe4a72f (patch)
treed1abf9cdb898005099eb741a1f6ed79417b331fb /src/resources/map/tileinfo.h
parent496e74aa95984380e4a36fe8d55d0839002d6f8f (diff)
downloadmv-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.gz
mv-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.bz2
mv-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.xz
mv-537085e221d25f710ed7162e1fc8add8ffe4a72f.zip
Improve fringe map layers drawing.
Pre cache next tile position with image.
Diffstat (limited to 'src/resources/map/tileinfo.h')
-rw-r--r--src/resources/map/tileinfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/map/tileinfo.h b/src/resources/map/tileinfo.h
index 764df0fb4..a15a5dc01 100644
--- a/src/resources/map/tileinfo.h
+++ b/src/resources/map/tileinfo.h
@@ -31,13 +31,20 @@ struct TileInfo final
image(nullptr),
width(0),
count(1),
+ nextTile(1),
isEnabled(true)
{
}
+ /* tile image */
Image *image;
+ /* repeated tile width in pixels */
int width;
+ /* repeated tiles count - 1 */
int count;
+ /* number of tiles to get next tile */
+ int nextTile;
+ /* is tile enabled flag. if set to true, also mean image is non null */
bool isEnabled;
};