// ----------------------------------------------------------------------------- // Unloads all cached textures, flats and sprites // ----------------------------------------------------------------------------- void MapTextureManager::refreshResources() { // Just clear all cached textures textures_.clear(); flats_.clear(); sprites_.clear(); theMainWindow->paletteChooser()->setGlobalFromArchive(archive_); MapEditor::forceRefresh(true); palette_->copyPalette(resourcePalette()); buildTexInfoList(); }
/* MapTextureManager::refreshResources * Unloads all cached textures, flats and sprites *******************************************************************/ void MapTextureManager::refreshResources() { // Just clear all cached textures textures.clear(); flats.clear(); sprites.clear(); thePaletteChooser->setGlobalFromArchive(archive); theMapEditor->forceRefresh(true); palette = getResourcePalette(); buildTexInfoList(); //wxLogMessage("texture manager cleared"); }