Beispiel #1
0
void PathRemap::add_remap(const String& p_from, const String& p_to,const String& p_locale) {

	if (!remap.has(p_from)) {
		remap[p_from]=RemapData();
	}

	if (p_locale==String())
		remap[p_from].always=p_to;
	else
		remap[p_from].locale[p_locale]=p_to;
}
Beispiel #2
0
void PathRemap::add_remap(const String& p_from, const String& p_to,const String& p_locale) {

	if (!remap.has(p_from)) {
		remap[p_from]=RemapData();
	}

	if (p_locale==String())
		remap[p_from].always=p_to;
	else
		remap[p_from].locale[p_locale]=p_to;

	if (OS::get_singleton()->is_stdout_verbose())
		print_line("REMAP: "+p_from+" -> "+p_to+" ("+p_locale+")");

}
Beispiel #3
0
////////////////////////////////////////////////////////////////////////////////
// Resorting part
// Finds a draw list using reindexing. Will put vertices in order of appearance
// int the draw list, remapping the indices as it goes. 
// The contents of the part will be overwritten.
void TriSoup::CacheSort(int lruSize)
{
	std::vector<int> faceOrder;
	ReindexTriangles(lruSize, faceOrder);
	RemapData(faceOrder);
}