30 #include "eng3d/material.hpp"
31 #include "eng3d/texture.hpp"
32 #include "eng3d/state.hpp"
33 #include "eng3d/log.hpp"
39 auto it = materials.find(name);
40 if(it != materials.end())
return it->second;
43 std::shared_ptr<Eng3D::Material> material = std::make_shared<Eng3D::Material>();
44 materials[name] = material;
45 return materials[name];
const std::shared_ptr< Eng3D::Material > load(const std::string &name)
void error(const std::string_view category, const std::string_view msg)
std::string translate_format(const std::string_view format, Args &&... args)
String formatter, with translation.