Ejemplo n.º 1
0
void ResourceManagerClass::LoadTextures()
{
	for (std::vector< TexturePair >::iterator it = textures.begin(); it != textures.end(); ++it)
	{
		CIwTexture* texture = new CIwTexture;
		texture->LoadFromFile(it->first.c_str());
		texture->Upload();
		it->second = new Texture;
		it->second->SetData((void*)texture);
	}
}