Exemplo n.º 1
0
std::string AssimpMeshLoader::allLoadingTypes() const
{
    auto assimp_string = aiString{};
    aiGetExtensionList(&assimp_string);

    auto string = std::string{assimp_string.C_Str()};
    std::replace(string.begin(), string.end(), ';', ' ');
    return string;
}
Exemplo n.º 2
0
tvector<tstring> CModelConverter::GetReadFormats()
{
	tvector<tstring> asFormats;

#ifdef WITH_ASSIMP
	aiString sFormats;
	aiGetExtensionList(&sFormats);

	explode(sFormats.data, asFormats, ";");

	for (size_t i = 0; i < asFormats.size(); i++)	// Get rid of the * that assimp puts at the front
		asFormats[i] = asFormats[i].substr(1);
#else
	asFormats.push_back(".obj");
	asFormats.push_back(".dae");
#endif

	asFormats.push_back(".sia");

	return asFormats;
}