]> icculus.org git repositories - btb/d2x.git/blob - d2x-gl.sh
move PhysicsFS initialisation, search path setup and argument reading to physfsx.h
[btb/d2x.git] / d2x-gl.sh
1 #!/bin/bash
2 #
3 # Enable some 3Dfx OpenGL hints
4 #
5 export MESA_GLX_FX="f"
6 export MESA_CONFIG="quake2"
7 #
8 # Disable the 3Dfx GLIDE logo
9 #
10 export FX_GLIDE_NO_SPLASH="1"
11 #
12 # Change the swap buffers in Voodoo FIFO from 2 to 4
13 #
14 export MESA_FX_SWAP_PENDING="4"
15 #
16 # Print Mesa statistics at end of game
17 #
18 export MESA_FX_INFO="1"
19 #
20 # Enable monitor's vertical refresh rate syncing on _most_ NVidia cards.
21 #   (see /usr/share/doc/NVIDIA_GLX-1.0/README)
22 export __GL_SYNC_TO_VBLANK="1"
23 #
24 # Enable Full Scene Anti-Aliasing on NVidia cards who supports it.
25 #   (see /usr/share/doc/NVIDIA_GLX-1.0/README)
26 export __GL_FSAA_MODE="3"
27 #
28 # Note: this is *mandatory* with single-threaded applications
29 # like d2x-gl on systems equipped with NVidia cards and an old
30 # version of ld.so.
31 #   (see /usr/share/doc/NVIDIA_GLX-1.0/README)
32 #
33 export __GL_SINGLE_THREADED="1"
34 #
35 # Finally, run the real game.
36 # All switches can be overwritten by command-line arguments.
37 #
38 nice /usr/games/d2x-gl.real -tmap fp -nocdrom -nomovies \
39         -gl_mipmap -gl_alttexmerge -gl_reticle 2 \
40         -nofades \
41         $1 $2 $3 $4 $5
42