diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-21 18:41:45 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-21 18:41:45 +0000 |
commit | c2a830c71ef0e271e48ef57a80ee5b00a977a4de (patch) | |
tree | 9c8f13688ddbf159a34640ad4cf4fdda3eb20ecf /src/resources/resourcemanager.cpp | |
parent | c392a1aa234b304b634c4ace6375ad96397a30b9 (diff) | |
download | mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.gz mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.bz2 mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.tar.xz mana-c2a830c71ef0e271e48ef57a80ee5b00a977a4de.zip |
Image loader now automatically determines whether to use masked drawing or
an alpha layer.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 0abc10eb..1e2f4f31 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -73,7 +73,7 @@ ResourceManager::~ResourceManager() } Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, - const std::string &idPath, int flags) + const std::string &idPath) { // Check if the id exists, and return the value if it does. std::map<std::string, ResourceEntry>::iterator resIter = @@ -122,7 +122,7 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, if (buffer != NULL) { // Let the image class load it - resource = Image::load(buffer, fileSize, flags); + resource = Image::load(buffer, fileSize); // Cleanup free(buffer); @@ -177,19 +177,19 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, return resource; } -Image *ResourceManager::getImage(const std::string &idPath, int flags) +Image *ResourceManager::getImage(const std::string &idPath) { - return (Image*)get(IMAGE, idPath, flags); + return (Image*)get(IMAGE, idPath); } Music *ResourceManager::getMusic(const std::string &idPath) { - return (Music*)get(MUSIC, idPath, 0); + return (Music*)get(MUSIC, idPath); } SoundEffect *ResourceManager::getSoundEffect(const std::string &idPath) { - return (SoundEffect*)get(SOUND_EFFECT, idPath, 0); + return (SoundEffect*)get(SOUND_EFFECT, idPath); } ResourceManager* ResourceManager::getInstance() |