Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/cmd/gui_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,6 @@ void addGuiFlags(CLI::App &_app)
"for the GUI.")
->check(CLI::IsMember({"opengl", "vulkan", "metal"}));

_app.add_option("--render-engine", opt->renderEngineGui,
"Gazebo Rendering engine plugin to load for both the Server\n"
"and the GUI. Gazebo will use OGRE2 by default.\n"
"Make sure custom plugins are inside\n"
"GZ_SIM_RENDER_ENGINE_PATH.")
->default_str("ogre2");

_app.add_option("--render-engine-api-backend",
opt->renderEngineGuiApiBackend,
"API to use for both Server and GUI.\n"
"Possible values for ogre2:\n"
" - opengl (default)\n"
" - vulkan (beta)\n"
" - metal (Apple only. Default for Apple)\n"
"Note: If Vulkan is being in the GUI and gz-gui was\n"
"built against Qt < 5.15.2, it may be very slow")
->check(CLI::IsMember({"opengl", "vulkan", "metal"}));

_app.add_option("--gui-config", opt->guiConfig,
"Gazebo GUI configuration file to load.\n"
"If no file is provided then the configuration in\n"
Expand Down
2 changes: 2 additions & 0 deletions src/cmd/sim_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ void addSimFlags(CLI::App &_app, std::shared_ptr<SimOptions> _opt)
"for the Server.")
->check(CLI::IsMember({"opengl", "vulkan", "metal"}));

#ifdef WITH_GUI
_app.add_option_function<std::string>("--render-engine",
[_opt](const std::string &_renderEngine){
_opt->renderEngineGui = _renderEngine;
Expand All @@ -362,6 +363,7 @@ void addSimFlags(CLI::App &_app, std::shared_ptr<SimOptions> _opt)
"Note: If Vulkan is being in the GUI and gz-gui was\n"
"built against Qt < 5.15.2, it may be very slow")
->check(CLI::IsMember({"opengl", "vulkan", "metal"}));
#endif

_app.add_flag("--headless-rendering", _opt->headlessRendering,
"Run rendering in headless mode.");
Expand Down
Loading