예제 #1
0
파일: Map.cpp 프로젝트: Zbyl/DarkRadiant
IMapRootNodePtr Map::getRoot() {
    if (m_resource != NULL) {
        // Try to cast the node onto a root node and return
        return boost::dynamic_pointer_cast<IMapRootNode>(m_resource->getNode());
    }

    return IMapRootNodePtr();
}
예제 #2
0
SceneGraph::~SceneGraph()
{
	// Make sure the scene graph is properly uninstantiated
	if (root())
	{
        flushActionBuffer();
		setRoot(IMapRootNodePtr());
	}
}