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

Method getSceneNode

OgreMain/src/OgreSceneManager.cpp:626–637  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

624}
625//-----------------------------------------------------------------------
626SceneNode* SceneManager::getSceneNode(const String& name, bool throwExceptionIfNotFound) const
627{
628 OgreAssert(!name.empty(), "name must not be empty");
629 auto i = mNamedNodes.find(name);
630
631 if (i != mNamedNodes.end())
632 return i->second;
633
634 if (throwExceptionIfNotFound)
635 OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "SceneNode '" + name + "' not found.");
636 return NULL;
637}
638
639//-----------------------------------------------------------------------
640const Pass* SceneManager::_setPass(const Pass* pass, bool shadowDerivation)

Callers 2

processLookTargetMethod · 0.80
processTrackTargetMethod · 0.80

Calls 3

emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected