1 #include <Engine/Data/MaterialConverters.hpp>
3 #include <Core/Utils/Log.hpp>
14 using namespace Core::Utils;
20 namespace EngineMaterialConverters {
32 return ( removed == 1 );
39 LOG( logERROR ) <<
"Required material converter " << name <<
" not found!";
46 MaterialConverterRegistry.clear();
represent material data loaded by a file loader. Material data must be identified by a unique name....
bool removeMaterialConverter(const std::string &name)
bool registerMaterialConverter(const std::string &name, ConverterFunction converter)
std::pair< bool, ConverterFunction > getMaterialConverter(const std::string &name)
std::function< RadiumMaterialPtr(AssetMaterialPtr)> ConverterFunction
static std::map< std::string, std::function< RadiumMaterialPtr(AssetMaterialPtr)> > MaterialConverterRegistry
Map that stores each conversion function.