Ejemplo n.º 1
0
	void Scene::RemoveLayer( uint32_t depth )
	{
		for ( LayerList::iterator it = mLayerList.begin(), itEnd = mLayerList.end(); it != itEnd; ++it )
		{
			Layer* pLayer = *it;
			if ( pLayer->GetLayerDepth() == depth )
			{
				mLayersToDelete.push_back( pLayer );
				pLayer->MarkForDeletion();
			}
		}
	}