mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:40:05 +00:00
Add setting for cursor icon scale
This commit is contained in:
parent
0086dc3e0f
commit
1ff686629b
13 changed files with 439 additions and 327 deletions
|
|
@ -43,10 +43,17 @@ void Initialize()
|
|||
void Shutdown() {}
|
||||
|
||||
std::shared_ptr<boost::gil::rgba8_image_t>
|
||||
LoadImageResource(const std::string& urlString)
|
||||
LoadImageResource(const std::string& urlString, double scale)
|
||||
{
|
||||
util::TextureAtlas& textureAtlas = util::TextureAtlas::Instance();
|
||||
return textureAtlas.CacheTexture(urlString, urlString);
|
||||
return textureAtlas.CacheTexture(urlString, urlString, scale);
|
||||
}
|
||||
|
||||
std::shared_ptr<boost::gil::rgba8_image_t> LoadImageResource(
|
||||
const std::string& urlString, const std::string& textureName, double scale)
|
||||
{
|
||||
util::TextureAtlas& textureAtlas = util::TextureAtlas::Instance();
|
||||
return textureAtlas.CacheTexture(textureName, urlString, scale);
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<boost::gil::rgba8_image_t>>
|
||||
|
|
|
|||
|
|
@ -19,9 +19,13 @@ void Initialize();
|
|||
void Shutdown();
|
||||
|
||||
std::shared_ptr<boost::gil::rgba8_image_t>
|
||||
LoadImageResource(const std::string& urlString);
|
||||
LoadImageResource(const std::string& urlString, double scale = 1);
|
||||
std::shared_ptr<boost::gil::rgba8_image_t>
|
||||
LoadImageResource(const std::string& urlString,
|
||||
const std::string& textureName,
|
||||
double scale = 1);
|
||||
std::vector<std::shared_ptr<boost::gil::rgba8_image_t>>
|
||||
LoadImageResources(const std::vector<std::string>& urlStrings);
|
||||
LoadImageResources(const std::vector<std::string>& urlStrings);
|
||||
void BuildAtlas();
|
||||
|
||||
} // namespace ResourceManager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue