RenderSystem::RenderSystem()
{
    OgreLogging::configureLogging();

    std::string rviz_path = ros::package::getPath(ROS_PACKAGE_NAME);

    setupDummyWindowId();
    ogre_root_ = new Ogre::Root( rviz_path+"/ogre_media/plugins.cfg" );
    loadOgrePlugins();
    setupRenderSystem();
    ogre_root_->initialise(false);
    setupResources();
    makeRenderWindow( dummy_window_id_, 1, 1 );
    Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
}
예제 #2
0
파일: render_system.cpp 프로젝트: CURG/rviz
RenderSystem::RenderSystem()
: ogre_overlay_system_(NULL)
, stereo_supported_(false)
{
  OgreLogging::configureLogging();

  std::string rviz_path = ros::package::getPath(ROS_PACKAGE_NAME);

  setupDummyWindowId();
  ogre_root_ = new Ogre::Root( rviz_path+"/ogre_media/plugins.cfg" );
#if ((OGRE_VERSION_MAJOR == 1 && OGRE_VERSION_MINOR >= 9) || OGRE_VERSION_MAJOR >= 2 )
  ogre_overlay_system_ = new Ogre::OverlaySystem();
#endif
  loadOgrePlugins();
  setupRenderSystem();
  ogre_root_->initialise(false);
  makeRenderWindow( dummy_window_id_, 1, 1 );
  detectGlVersion();
  setupResources();
  Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
}