initialization.cpp
Go to the documentation of this file.
1 #include "initialization.h"
2 
3 #include <OgreRoot.h>
4 #include <OgreRenderSystem.h>
5 
6 #include <exception>
7 #include <stdexcept>
8 
9 #include <ros/package.h>
10 
11 namespace rviz
12 {
13 
15 {
16  delete Ogre::Root::getSingletonPtr();
17 }
18 
19 // This should be folded into RenderSystem, but it should work fine as
20 // is, so I'm leaving it for now.
21 void initializeResources( const V_string& resource_paths )
22 {
23  V_string::const_iterator path_it = resource_paths.begin();
24  V_string::const_iterator path_end = resource_paths.end();
25  for( ; path_it != path_end; ++path_it )
26  {
27  Ogre::ResourceGroupManager::getSingleton().addResourceLocation( *path_it, "FileSystem", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME );
28  }
29 
30  Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
31 }
32 
33 } // namespace rviz
void initializeResources(const V_string &resource_paths)
void cleanupOgre()
std::vector< std::string > V_string


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Wed Aug 28 2019 04:01:51