diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-15 18:02:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-15 18:17:20 +0300 |
commit | 430f472b0e358ebb2cc7f2113c606f2ea03f7739 (patch) | |
tree | e0c5cca9455248b66ce86c2c32e45ab2192ccbbb /src/resources/map/map.h | |
parent | dfb43b30af56e9d7b00115e8a2a2f21a4f308227 (diff) | |
download | ManaVerse-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.gz ManaVerse-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.bz2 ManaVerse-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.xz ManaVerse-430f472b0e358ebb2cc7f2113c606f2ea03f7739.zip |
Improve a bit map draw performance.
Diffstat (limited to 'src/resources/map/map.h')
-rw-r--r-- | src/resources/map/map.h | 9 |
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 |