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