Add setting for cursor icon scale

This commit is contained in:
AdenKoperczak 2025-04-06 17:36:23 -04:00
parent 0086dc3e0f
commit 1ff686629b
No known key found for this signature in database
GPG key ID: 9843017036F62EE7
13 changed files with 439 additions and 327 deletions

View file

@ -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>>