summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-26 00:59:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-26 00:59:29 +0300
commitafc144cfe396f10eea5b160c711eec4b20ae00c3 (patch)
tree0f44c6c35f26628e8477d29090716dbdc2098f74 /src/resources/resourcemanager/resourcemanager.cpp
parentea0809826d530f82dc84f8e046b3d11a797dd716 (diff)
downloadplus-afc144cfe396f10eea5b160c711eec4b20ae00c3.tar.gz
plus-afc144cfe396f10eea5b160c711eec4b20ae00c3.tar.bz2
plus-afc144cfe396f10eea5b160c711eec4b20ae00c3.tar.xz
plus-afc144cfe396f10eea5b160c711eec4b20ae00c3.zip
Move atlas load function from resourcemanager into separate file.
Diffstat (limited to 'src/resources/resourcemanager/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager/resourcemanager.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/resources/resourcemanager/resourcemanager.cpp b/src/resources/resourcemanager/resourcemanager.cpp
index 539e89d3a..3bde069e5 100644
--- a/src/resources/resourcemanager/resourcemanager.cpp
+++ b/src/resources/resourcemanager/resourcemanager.cpp
@@ -528,32 +528,6 @@ Resource *ResourceManager::get(const std::string &idPath,
}
#ifdef USE_OPENGL
-struct AtlasLoader final
-{
- const std::string name;
- const StringVect *files;
-
- static Resource *load(const void *const v)
- {
- if (!v)
- return nullptr;
-
- const AtlasLoader *const rl = static_cast<const AtlasLoader *const>(v);
- AtlasResource *const resource = AtlasManager::loadTextureAtlas(
- rl->name, *rl->files);
- if (!resource)
- reportAlways("Atlas creation error: %s", rl->name.c_str());
- return resource;
- }
-};
-
-Resource *ResourceManager::getAtlas(const std::string &name,
- const StringVect &files)
-{
- AtlasLoader rl = { name, &files };
- return get("atlas_" + name, AtlasLoader::load, &rl);
-}
-
struct ShaderLoader final
{
const std::string name;