ManaPlus
|
Functions | |
AtlasResource * | getAtlas (const std::string &name, const StringVect &files) |
Resource * | getEmptyAtlas (const std::string &name, const StringVect &files) |
Image * | getImage (const std::string &idPath) |
ImageSet * | getImageSet (const std::string &imagePath, const int w, const int h) |
SDLMusic * | getMusic (const std::string &idPath) |
Image * | getRescaled (const Image *const image, const int width, const int height) |
Resource * | getShader (const unsigned int type, const std::string &name) |
Resource * | getShaderProgram (const std::string &vertex, const std::string &fragment, const bool isNewShader) |
SoundEffect * | getSoundEffect (const std::string &idPath) |
SpriteDef * | getSprite (const std::string &path, const int variant) |
Image * | getSubImage (Image *const parent, const int x, const int y, const int width, const int height) |
ImageSet * | getSubImageSet (Image *const parent, const int width, const int height) |
WalkLayer * | getWalkLayer (const std::string &name, Map *const map) |
XML::Document * | getXml (const std::string &idPath, const UseVirtFs useResman, const SkipError skipError) |
AtlasResource * Loader::getAtlas | ( | const std::string & | name, |
const StringVect & | files | ||
) |
Definition at line 56 of file atlasloader.cpp.
References ResourceManager::get(), and AtlasLoader::load().
Resource * Loader::getEmptyAtlas | ( | const std::string & | name, |
const StringVect & | files | ||
) |
Definition at line 57 of file emptyatlasloader.cpp.
References ResourceManager::get(), and EmptyAtlasLoader::load().
Referenced by MapReader::loadEmptyAtlas().
Image * Loader::getImage | ( | const std::string & | idPath | ) |
Convenience wrapper around ResourceManager::get for loading images.
Definition at line 86 of file imageloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
Referenced by Particle::addEffect(), ParticleEngine::addEffect(), BrowserBox::calcHeight(), Item::getImage(), Theme::getImageFromTheme(), ParticleEmitter::getImageSet(), Map::initializeAmbientLayers(), LangListModel::LangListModel(), ImageSetLoader::load(), TextCommand::loadImage(), main(), NpcDialog::parseListItems(), ParticleEmitter::ParticleEmitter(), MapReader::readTileset(), SkillData::setIcon(), Item::setId(), ItemPopup::setItem(), Minimap::setMap(), MapItem::setType(), ActorSprite::setupSpriteDisplay(), and StaticBrowserBox::updateHeight().
ImageSet * Loader::getImageSet | ( | const std::string & | imagePath, |
const int | w, | ||
const int | h | ||
) |
Creates a image set based on the image referenced by the given path and the supplied sprite sizes
Definition at line 66 of file imagesetloader.cpp.
References ResourceManager::get(), ImageSetLoader::load(), and Catch::toString().
Referenced by BrowserBox::BrowserBox(), ParticleEmitter::getImageSet(), Theme::getImageSetFromTheme(), SimpleAnimation::initializeAnimation(), SpriteDef::loadImageSet(), and StaticBrowserBox::StaticBrowserBox().
SDLMusic * Loader::getMusic | ( | const std::string & | idPath | ) |
Convenience wrapper around ResourceManager::get for loading songs.
Definition at line 74 of file musicloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
Referenced by loadMusic().
Definition at line 65 of file rescaledloader.cpp.
References ResourceManager::get(), AvatarDB::load(), and strprintf().
Referenced by AmbientLayer::AmbientLayer(), and Desktop::setBestFittingWallpaper().
Resource * Loader::getShader | ( | const unsigned int | type, |
const std::string & | name | ||
) |
Definition at line 61 of file shaderloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
Referenced by ShadersManager::createProgram().
Resource * Loader::getShaderProgram | ( | const std::string & | vertex, |
const std::string & | fragment, | ||
const bool | isNewShader | ||
) |
Definition at line 65 of file shaderprogramloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
SoundEffect * Loader::getSoundEffect | ( | const std::string & | idPath | ) |
Convenience wrapper around ResourceManager::get for loading samples.
Definition at line 71 of file soundloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
Referenced by SoundManager::playGuiSfx(), and SoundManager::playSfx().
SpriteDef * Loader::getSprite | ( | const std::string & | path, |
const int | variant | ||
) |
Creates a sprite definition based on a given path and the supplied variant.
Definition at line 58 of file spritedefloader.cpp.
References ResourceManager::get(), AvatarDB::load(), and Catch::toString().
Referenced by AnimationDelayLoad::load(), and AnimatedSprite::load().
Image * Loader::getSubImage | ( | Image *const | parent, |
const int | x, | ||
const int | y, | ||
const int | width, | ||
const int | height | ||
) |
Definition at line 68 of file subimageloader.cpp.
References ResourceManager::get(), AvatarDB::load(), Catch::toString(), x, and y.
Referenced by ParticleEmitter::getImageSet(), SkinHelper::loadList(), and ParticleEmitter::ParticleEmitter().
Definition at line 65 of file subimagesetloader.cpp.
References ResourceManager::get(), AvatarDB::load(), and Catch::toString().
Referenced by ParticleEmitter::getImageSet(), and Theme::getImageSetFromThemeXml().
Definition at line 58 of file walklayerloader.cpp.
References ResourceManager::get(), and WalkLayerLoader::load().
XML::Document * Loader::getXml | ( | const std::string & | idPath, |
const UseVirtFs | useResman, | ||
const SkipError | skipError | ||
) |
Definition at line 56 of file xmlloader.cpp.
References ResourceManager::get(), and AvatarDB::load().
Referenced by Particle::addEffect(), ParticleEngine::addEffect(), SpriteDef::includeSprite(), SpriteDef::load(), Theme::loadColors(), Theme::loadInfo(), and Theme::readSkin().