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

Method getAttachedObject

OgreMain/src/OgreSceneNode.cpp:114–127  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

112 }
113 //-----------------------------------------------------------------------
114 MovableObject* SceneNode::getAttachedObject(const String& name) const
115 {
116 // Look up
117 MovableObjectNameExists pred = {name};
118 auto i = std::find_if(mObjectsByName.begin(), mObjectsByName.end(), pred);
119
120 if (i == mObjectsByName.end())
121 {
122 OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "Attached object " +
123 name + " not found.", "SceneNode::getAttachedObject");
124 }
125
126 return *i;
127 }
128 //-----------------------------------------------------------------------
129 MovableObject* SceneNode::detachObject(unsigned short index)
130 {

Callers 5

updateDebugDisplayMethod · 0.80
updateDebugDisplayMethod · 0.80
itemSelectedFunction · 0.80
itemSelectedFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected