// Create a camera for the scene Camera * PCZSceneManager::createCamera( const String &name ) { // Check name not used if (mCameras.find(name) != mCameras.end()) { OGRE_EXCEPT( Exception::ERR_DUPLICATE_ITEM, "A camera with the name " + name + " already exists", "PCZSceneManager::createCamera" ); } Camera * c = OGRE_NEW PCZCamera( name, this ); mCameras.insert( CameraList::value_type( name, c ) ); // create visible bounds aab map entry mCamVisibleObjectsMap[c] = VisibleObjectsBoundsInfo(); // tell all the zones about the new camera ZoneMap::iterator i; PCZone * zone; for (i = mZones.begin(); i != mZones.end(); i++) { zone = i->second; zone->notifyCameraCreated( c ); } return c; }