-----------------------------------------------------------------------
| 170 | } |
| 171 | //----------------------------------------------------------------------- |
| 172 | Camera* SceneManager::createCamera(const String& name) |
| 173 | { |
| 174 | // Check name not used |
| 175 | if (mCameras.find(name) != mCameras.end()) |
| 176 | { |
| 177 | OGRE_EXCEPT( |
| 178 | Exception::ERR_DUPLICATE_ITEM, |
| 179 | "A camera with the name " + name + " already exists", |
| 180 | "SceneManager::createCamera" ); |
| 181 | } |
| 182 | |
| 183 | Camera *c = OGRE_NEW Camera(name, this); |
| 184 | mCameras.emplace(name, c); |
| 185 | |
| 186 | // create visible bounds aab map entry |
| 187 | mCamVisibleObjectsMap[c] = VisibleObjectsBoundsInfo(); |
| 188 | |
| 189 | return c; |
| 190 | } |
| 191 | |
| 192 | //----------------------------------------------------------------------- |
| 193 | Camera* SceneManager::getCamera(const String& name) const |