diff --git a/examples/actor_animation/Main.cc b/examples/actor_animation/Main.cc index 378a066a4..10e18d0da 100644 --- a/examples/actor_animation/Main.cc +++ b/examples/actor_animation/Main.cc @@ -181,17 +181,17 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string engine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - engine = _argv[1]; + ogreEngineName = _argv[1]; } common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back(engine); + engineNames.push_back(ogreEngineName); std::vector visuals; ic::SkeletonPtr skel = nullptr; diff --git a/examples/camera_tracking/Main.cc b/examples/camera_tracking/Main.cc index 5b7335812..2df2c5862 100644 --- a/examples/camera_tracking/Main.cc +++ b/examples/camera_tracking/Main.cc @@ -118,12 +118,20 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; std::vector nodes; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/custom_scene_viewer/ManualSceneDemo.cc b/examples/custom_scene_viewer/ManualSceneDemo.cc index f65744945..0b4c122bc 100644 --- a/examples/custom_scene_viewer/ManualSceneDemo.cc +++ b/examples/custom_scene_viewer/ManualSceneDemo.cc @@ -185,10 +185,10 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string ogreEngine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - ogreEngine = _argv[1]; + ogreEngineName = _argv[1]; } common::Console::SetVerbosity(4); @@ -208,7 +208,7 @@ int main(int _argc, char** _argv) sceneDemo->AddScene(SceneBuilderPtr(new ShadowSceneBuilder(4))); sceneDemo->AddScene(SceneBuilderPtr(new ShadowSceneBuilder(5))); //! [add scenes] - sceneDemo->AddCamera(ogreEngine); + sceneDemo->AddCamera(ogreEngineName); sceneDemo->AddCamera("optix"); sceneDemo->Run(); return 0; diff --git a/examples/gazebo_scene_viewer/GazeboDemo.cc b/examples/gazebo_scene_viewer/GazeboDemo.cc index 752628425..2d7217f0b 100644 --- a/examples/gazebo_scene_viewer/GazeboDemo.cc +++ b/examples/gazebo_scene_viewer/GazeboDemo.cc @@ -92,17 +92,17 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string ogreEngine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - ogreEngine = _argv[1]; + ogreEngineName = _argv[1]; } Connect(); std::vector cameras; std::vector engineNames; - engineNames.push_back(ogreEngine); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/gazebo_scene_viewer/GazeboWorldDemo.cc b/examples/gazebo_scene_viewer/GazeboWorldDemo.cc index e498e2358..cf584a168 100644 --- a/examples/gazebo_scene_viewer/GazeboWorldDemo.cc +++ b/examples/gazebo_scene_viewer/GazeboWorldDemo.cc @@ -92,17 +92,17 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string ogreEngine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - ogreEngine = _argv[1]; + ogreEngineName = _argv[1]; } Connect(); std::vector cameras; std::vector engineNames; - engineNames.push_back(ogreEngine); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/lidar_visual/Main.cc b/examples/lidar_visual/Main.cc index 0935976bf..e1c1a30a7 100644 --- a/examples/lidar_visual/Main.cc +++ b/examples/lidar_visual/Main.cc @@ -264,10 +264,10 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string engine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - engine = _argv[1]; + ogreEngineName = _argv[1]; } common::Console::SetVerbosity(4); @@ -276,7 +276,7 @@ int main(int _argc, char** _argv) std::vector nodes; std::vector sensors; - engineNames.push_back(engine); + engineNames.push_back(ogreEngineName); for (auto engineName : engineNames) { diff --git a/examples/mesh_viewer/Main.cc b/examples/mesh_viewer/Main.cc index 7ad94e171..d0d40fa22 100644 --- a/examples/mesh_viewer/Main.cc +++ b/examples/mesh_viewer/Main.cc @@ -123,11 +123,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/mouse_picking/Main.cc b/examples/mouse_picking/Main.cc index 5b9db3e5b..1d0749b7a 100644 --- a/examples/mouse_picking/Main.cc +++ b/examples/mouse_picking/Main.cc @@ -126,11 +126,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/particles_demo/Main.cc b/examples/particles_demo/Main.cc index 3386cbb32..049bc736c 100644 --- a/examples/particles_demo/Main.cc +++ b/examples/particles_demo/Main.cc @@ -159,11 +159,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre2"); + engineNames.push_back(ogreEngineName); for (auto engineName : engineNames) { diff --git a/examples/render_pass/Main.cc b/examples/render_pass/Main.cc index 68411d91b..1ed9463f8 100644 --- a/examples/render_pass/Main.cc +++ b/examples/render_pass/Main.cc @@ -176,11 +176,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) { diff --git a/examples/simple_demo/Main.cc b/examples/simple_demo/Main.cc index 36f09cf4c..c6f1557e3 100644 --- a/examples/simple_demo/Main.cc +++ b/examples/simple_demo/Main.cc @@ -177,17 +177,17 @@ int main(int _argc, char** _argv) // Expose engine name to command line because we can't instantiate both // ogre and ogre2 at the same time - std::string engine("ogre"); + std::string ogreEngineName("ogre"); if (_argc > 1) { - engine = _argv[1]; + ogreEngineName = _argv[1]; } common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back(engine); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/thermal_camera/Main.cc b/examples/thermal_camera/Main.cc index 064e81d9c..f48c23eab 100644 --- a/examples/thermal_camera/Main.cc +++ b/examples/thermal_camera/Main.cc @@ -129,11 +129,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre2"); + engineNames.push_back(ogreEngineName); for (auto engineName : engineNames) { diff --git a/examples/transform_control/Main.cc b/examples/transform_control/Main.cc index 61b1a5634..e2102ba0d 100644 --- a/examples/transform_control/Main.cc +++ b/examples/transform_control/Main.cc @@ -112,11 +112,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) diff --git a/examples/view_control/Main.cc b/examples/view_control/Main.cc index 8b87c373c..7c2a2070e 100644 --- a/examples/view_control/Main.cc +++ b/examples/view_control/Main.cc @@ -158,11 +158,19 @@ int main(int _argc, char** _argv) { glutInit(&_argc, _argv); + // Expose engine name to command line because we can't instantiate both + // ogre and ogre2 at the same time + std::string ogreEngineName("ogre"); + if (_argc > 1) + { + ogreEngineName = _argv[1]; + } + common::Console::SetVerbosity(4); std::vector engineNames; std::vector cameras; - engineNames.push_back("ogre"); + engineNames.push_back(ogreEngineName); engineNames.push_back("optix"); for (auto engineName : engineNames) {