Ejemplo n.º 1
0
void ResourceManager::loadAllResources(const std::string &fileName)
{
	CL_ResourceManager resourceManager = loadResourceFile(fileName);
	std::vector<CL_String> names = resourceManager.get_resource_names();
	for (std::vector<CL_String>::const_iterator it = names.begin(); it != names.end(); ++it)
		loadResource(*it, fileName);
}
Ejemplo n.º 2
0
std::vector<CL_SharedPtr<Resource> > ResourceManager::createAllResources(const std::string &fileName)
{
	CL_ResourceManager resourceManager = loadResourceFile(fileName);
	std::vector<CL_String> names = resourceManager.get_resource_names();
	std::vector<CL_SharedPtr<Resource> > resources;
	for (std::vector<CL_String>::const_iterator it = names.begin(); it != names.end(); ++it)
		resources.push_back(createResource(*it, fileName));
	return resources;
}