summaryrefslogtreecommitdiff
path: root/src/resources/map/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-15 18:02:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-15 18:17:20 +0300
commit430f472b0e358ebb2cc7f2113c606f2ea03f7739 (patch)
treee0c5cca9455248b66ce86c2c32e45ab2192ccbbb /src/resources/map/map.h
parentdfb43b30af56e9d7b00115e8a2a2f21a4f308227 (diff)
downloadmanaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.gz
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.bz2
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.xz
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.zip
Improve a bit map draw performance.
Diffstat (limited to 'src/resources/map/map.h')
-rw-r--r--src/resources/map/map.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/resources/map/map.h b/src/resources/map/map.h
index dc8c880b1..3afd6d8ef 100644
--- a/src/resources/map/map.h
+++ b/src/resources/map/map.h
@@ -216,8 +216,7 @@ class Map final : public Properties, public ConfigListener
*/
void addAnimation(const int gid, TileAnimation *const animation);
- void setDrawLayersFlags(const MapType::MapType &n)
- { mDrawLayersFlags = n; }
+ void setDrawLayersFlags(const MapType::MapType &n);
MapType::MapType getDrawLayersFlags() const A_WARN_UNUSED
{ return mDrawLayersFlags; }
@@ -327,6 +326,8 @@ class Map final : public Properties, public ConfigListener
void setMask(const int mask);
+ void updateDrawLayersList();
+
protected:
friend class Actor;
friend class Minimap;
@@ -377,6 +378,8 @@ class Map final : public Properties, public ConfigListener
MetaTile *const mMetaTiles;
WalkLayer *mWalkLayer;
Layers mLayers;
+ Layers mDrawUnderLayers;
+ Layers mDrawOverLayers;
Tilesets mTilesets;
Actors mActors;
bool mHasWarps;
@@ -452,7 +455,9 @@ class Map final : public Properties, public ConfigListener
const MapHeights *mHeights;
bool mRedrawMap;
bool mBeingOpacity;
+ bool mCachedDraw;
bool mCustom;
+ bool mDrawOnlyFringe;
};
#endif // RESOURCES_MAP_MAP_H