#pragma once #include "drape/texture.hpp" #include "std/string.hpp" namespace dp { class StaticTexture : public Texture { public: class StaticKey : public Key { public: ResourceType GetType() const override { return ResourceType::Static; } }; StaticTexture(string const & textureName, string const & skinPathName, ref_ptr allocator); ref_ptr FindResource(Key const & key, bool & newResource) override; void Invalidate(string const & skinPathName, ref_ptr allocator); private: void Fail(); void Load(string const & skinPathName, ref_ptr allocator); string m_textureName; drape_ptr m_info; }; } // namespace dp