materialsystem/cmaterialsystem.cpp
IMaterial *CMaterialSystem::CreateMaterial( const char *pMaterialName, KeyValues *pVMTKeyValues )
{
	// For not, just create a material with no default settings
	IMaterialInternal* pMaterial = IMaterialInternal::CreateMaterial( pMaterialName, TEXTURE_GROUP_OTHER, pVMTKeyValues );
	pMaterial->IncrementReferenceCount();
	AddMaterialToMaterialList( pMaterial );
	return pMaterial->GetQueueFriendlyVersion();
}
//-----------------------------------------------------------------------------
// Create new materials	(currently only used by the editor!)
//-----------------------------------------------------------------------------
Create new materials   (currently only used by the editor!)
Create new materials ( currently only used by the editor! )
IMaterial *CMaterialSystem::CreateMaterial( const char *pMaterialName, KeyValues *pVMTKeyValues )
{
	IMaterialInternal* pMaterial = IMaterialInternal::CreateMaterial( pMaterialName, TEXTURE_GROUP_OTHER, pVMTKeyValues );
	pMaterial->IncrementReferenceCount();
	AddMaterialToMaterialList( pMaterial );
	return pMaterial->GetQueueFriendlyVersion();
}
IMaterial * CMaterialSystem :: CreateMaterial ( const char * pMaterialName , KeyValues * pVMTKeyValues ) { IMaterialInternal * pMaterial = IMaterialInternal :: CreateMaterial ( pMaterialName , TEXTURE_GROUP_OTHER , pVMTKeyValues ) ; pMaterial -> IncrementReferenceCount ( ) ; AddMaterialToMaterialList ( pMaterial ) ; return pMaterial -> GetQueueFriendlyVersion ( ) ; }
Create new materials   (currently only used by the editor!)
Create new materials ( currently only used by the editor! )
// For not, just create a material with no default settings