Exemple #1
0
	MaterialRef MdfMaterialFactory::LoadMaterial(const std::string& name) {
		auto mdfContent(vfs->ReadAsString(name));

		std::istringstream in(mdfContent);
		std::string line;


		// Parse the material type

		while (std::getline(in, line)) {

		}


		// First line of MDF is always which type it is


		return MaterialRef();
	}
Exemple #2
0
MaterialRef Material::create(Material_t tag)
{
    return MaterialRef(new Material(tag));
}