Esempio n. 1
0
void TextureManager::onDeviceLost()
{
	for(TexturesIter it = m_textures.begin(); it != m_textures.end(); ++it)
	{
		TextureWeakPtr weak_tex = it->second;
		if (!weak_tex.expired())
		{
			TexturePtr t = weak_tex.lock();
			t->onDeviceLost();
		}
	}
}