diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2013-02-11 18:40:30 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:49:47 +0300 |
commit | 7fdac1d3bd3c2858c1025c25d96ef832e2b5b241 (patch) | |
tree | b7b0055ffcbc4750169b90ab80af1641f8e05174 /graphics/skin_loader.hpp | |
parent | aca14466854d86c2890d1ed4f24bbb84b85b6b63 (diff) |
added graphics::EDensity and resources naming system similar to Android.
Diffstat (limited to 'graphics/skin_loader.hpp')
-rw-r--r-- | graphics/skin_loader.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/skin_loader.hpp b/graphics/skin_loader.hpp index 7202c46e51..39fe2948e2 100644 --- a/graphics/skin_loader.hpp +++ b/graphics/skin_loader.hpp @@ -1,6 +1,8 @@ /// @author Siarhei Rachytski #pragma once +#include "defines.hpp" + #include "../geometry/rect2d.hpp" #include "../std/list.hpp" #include "../std/shared_ptr.hpp" @@ -48,7 +50,7 @@ namespace graphics list<EMode> m_mode; -/// resourceStyle-specific parameters + /// resourceStyle-specific parameters int32_t m_id; uint32_t m_texX; uint32_t m_texY; @@ -56,16 +58,17 @@ namespace graphics uint32_t m_texHeight; m2::RectU m_texRect; -/// pointStyle-specific parameters + /// pointStyle-specific parameters string m_resID; -/// skin-page specific parameters + /// skin-page specific parameters string m_fileName; -/// + EDensity m_density; + shared_ptr<ResourceManager> m_resourceManager; -/// skin-specific parameters + /// skin-specific parameters vector<shared_ptr<ResourceCache> > & m_caches; @@ -77,7 +80,8 @@ namespace graphics public: SkinLoader(shared_ptr<ResourceManager> const & resourceManager, - vector<shared_ptr<ResourceCache> > & caches); + vector<shared_ptr<ResourceCache> > & caches, + EDensity density); bool Push(string const & element); void Pop(string const & element); |