.B \-d, \-\-default
Reset video settings to default values (\-g 800x600 \-a auto \-w)
.TP
+.B \-\-renderer RENDERER
+Render the game using the specified video renderer. Valid values are sdl, opengl, and auto (the default).
+.TP
.B \-\-disable\-sfx
Disable sound effects
.TP
" -g, --geometry WIDTHxHEIGHT Run SuperTux in given resolution\n"
" -a, --aspect WIDTH:HEIGHT Run SuperTux with given aspect ratio\n"
" -d, --default Reset video settings to default values\n"
+ " --renderer RENDERER Use sdl, opengl, or auto to render\n"
" --disable-sfx Disable sound effects\n"
" --disable-music Disable music\n"
" -h, --help Show this help message and quit\n"
}
}
}
+ } else if(arg == "--renderer") {
+ i += 1;
+ if(i >= argc)
+ {
+ print_usage(argv[0]);
+ throw std::runtime_error("Need to specify a renderer for renderer argument");
+ }
+ else
+ {
+ config->video = get_video_system(argv[i]);
+ }
} else if(arg == "--show-fps") {
config->show_fps = true;
} else if(arg == "--no-show-fps") {