materialsystem/cmatlightmaps.cpp
void CMatLightmaps::EnumerateMaterials( void )
{
	// iterate in sorted order
	int id = 0;
	for (MaterialHandle_t i = GetMaterialDict()->FirstMaterial(); i != GetMaterialDict()->InvalidMaterial(); i = GetMaterialDict()->NextMaterial(i) )
	{
		GetMaterialInternal(i)->SetEnumerationID( id );
		++id;
	}
}
//-----------------------------------------------------------------------------
// Assign enumeration IDs to all materials
//-----------------------------------------------------------------------------
Assign enumeration IDs to all materials
Assign enumeration IDs to all materials
void CMatLightmaps::EnumerateMaterials( void )
{
	int id = 0;
	for (MaterialHandle_t i = GetMaterialDict()->FirstMaterial(); i != GetMaterialDict()->InvalidMaterial(); i = GetMaterialDict()->NextMaterial(i) )
	{
		GetMaterialInternal(i)->SetEnumerationID( id );
		++id;
	}
}
void CMatLightmaps :: EnumerateMaterials ( void ) { int id = 0 ; for ( MaterialHandle_t i = GetMaterialDict ( ) -> FirstMaterial ( ) ; i != GetMaterialDict ( ) -> InvalidMaterial ( ) ; i = GetMaterialDict ( ) -> NextMaterial ( i ) ) { GetMaterialInternal ( i ) -> SetEnumerationID ( id ) ; ++ id ; } }
Assign enumeration IDs to all materials
Assign enumeration IDs to all materials
// iterate in sorted order