How can I make use of SVGALIB from SDL?

The fact says the api will run under svgalib (among other things) but
I’m not sure how that works out. Is there a command line switch built in to sdl
programs or something I do when compiling the programs. Svgalib is a heck of a
lot faster then X windows for me and as far as I know there’s no frame buffer
device for my TNT1 (maybe there’s a vesa 2.0 fbdev). Thanks in advance :).–
Jeremy Gregorio
jgreg at azstarnet.com

Hi Jeremy,

The fact says the api will run under svgalib (among other things) but
I’m not sure how that works out. Is there a command line switch built in to sdl
programs or something I do when compiling the programs. Svgalib is a heck of a
lot faster then X windows for me and as far as I know there’s no frame buffer
device for my TNT1 (maybe there’s a vesa 2.0 fbdev). Thanks in advance :).
This is done via env variables, try
$ SDL_VIDEODRIVER=svgalib ./your_sdl_app
Look at the FAQ at libsdl.org, there you find more about this.

By default, SDL is not compiled with svga support. Check out your
installation and reconfigure SDL with the --enable-video-svga option if needed.–
Benjamin Niemann (P!\K)
pink at odahoda.de
www.odahoda.de/avop

By default, SDL is not compiled with svga support. Check out your
installation and reconfigure SDL with the --enable-video-svga option if needed.


Benjamin Niemann (P!\K)
pink at odahoda.de
www.odahoda.de/avop

Thanks, I didn’t know it was a compile time option, thanks again :).–
Jeremy Gregorio
jgreg at azstarnet.com