コード例 #1
0
// -----------------------------------------------------------------------------
// 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();
}
コード例 #2
0
/* 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");
}