MCPcopy Create free account
hub / github.com/OGRECave/ogre / createCamera

Method createCamera

OgreMain/src/OgreSceneManager.cpp:172–190  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

170}
171//-----------------------------------------------------------------------
172Camera* 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//-----------------------------------------------------------------------
193Camera* SceneManager::getCamera(const String& name) const

Callers 15

runMethod · 0.95
initializeSceneMethod · 0.95
mainMethod · 0.95
_init_windowFunction · 0.45
_renderCompositeMapMethod · 0.45
createDummySceneMethod · 0.45
setupContentMethod · 0.45
setupViewMethod · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45
setupRenderTargetMethod · 0.45
mainFunction · 0.45

Calls 4

CameraClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by 3

setupContentMethod · 0.36
setupViewMethod · 0.36
TEST_FFunction · 0.36