SVGALib


SVGAlib was an open-source low-level graphics library which ran on Linux and FreeBSD and allowed programs to change video mode and display full-screen graphics. Some popular games like Quake and Doom have been ported to use SVGAlib.

History

The library was popular in mid-1990s. Toward 2000, many applications that used it migrated to X11 and SDL, which itself can make use of SVGAlib as a video driver.

Sample

A sample of SVGAlib code is shown below:

  1. include
  2. include
  3. include
int main