Standard command-line options for OpenGL programs
All OpenGL programs that you can find on my pages accept some set of standard command-line options:
- --fullscreen
Start program in fullscreen mode.
Note that you can change fullscreen mode at runtime with most of my programs — standard key shortcut is Ctrl+F.
- --fullscreen-custom WIDTHxHEIGHT
Start program in fullscreen mode with screen resolution changed to WIDTH x HEIGHT.
If given WIDTH x HEIGHT resolution is not available then error message will be shown and program will start in fullscreen mode using current screen resolution.
- --geometry WIDTHxHEIGHT<sign>XOFF<sign>YOFF
Start program in window with given WIDTH and HEIGHT positioned at (XOFF, YOFF).
<sign> is either "+" or "-". +XOFF means that left window border should be XOFF pixels from left screen border. Note that XOFF itself may be negative (e.g. in --geometry 100x100+-100+100) and then window will be positioned slightly offscreen. Similarly, -XOFF means that right window border should be XOFF pixels from right screen border. Similar for +YOFF or -YOFF — they specify distance from upper or lower screen border.
You can omit the <sign>XOFF<sign>YOFF part and provide only WIDTHxHEIGHT part. You can also omit WIDTHxHEIGHT part and provide only <sign>XOFF<sign>YOFF part.
This option works the same as standard -geometry option for most XWindows programs.
Note that window manager may disallow or modify requested window position and/or size. Note that you can also of course change window size and position of the window while the program is running (by dragging window border and such).
- --display DISPLAY-NAME
Set the XWindows display to use.
Be warned that I experienced unstable behavior of X server (i.e. hangs, up to hanging my both displays) and SIGFPE errors at (random?) points when running some of my programs. Some of my (and others) programs seem to run perfectly fine on another display, some fail. This is related to OpenGL — most probably NVidia drivers problems. In other words: if you want to use this option, go on, but don't be surprised if something will not work smoothly.
See also general notes about options understood by my programs.