SVGALib

SVGALib

SVGAlib is an open-source low-level graphics library which runs on Linux and FreeBSD and allows programs to change video mode and display full-screen graphics. Some popular games like "Quake" and "Doom" used it in their original releases.

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.

A sample of SVGAlib code is shown below.


#include
#include
#include

int main(void){ int color = 4; int x = 10; int y = 10; unsigned int seconds = 5;

/* detect the chipset and give up supervisor rights */ if (vga_init() < 0) return EXIT_FAILURE;

vga_setmode(G320x200x256); vga_setcolor(color); vga_drawpixel(x, y); sleep(seconds); /* restore textmode and fall back to ordinary text console handling */ vga_setmode(TEXT); return EXIT_SUCCESS;}

See also

* General Graphics Interface (GGI)

External links

* [http://www.svgalib.org/ SVGAlib]
* [http://sourceforge.net/projects/svgalib-windows svgalib windows]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • SVGALib — es una biblioteca gráfica de bajo nivel y de código abierto para Linux y FreeBSD, que permite que los programas cambien el modo de vídeo y muestren gráficos a pantalla completa. Algunos juegos populares como Quake y Doom la utilizaron en sus… …   Wikipedia Español

  • Experix — is an open source command interpreter designed for operating laboratory equipment, especially data acquisition devices, and processing, displaying and storing the data from them. It is usable now, only under Linux on the PC platform, but still… …   Wikipedia

  • Magic SysRq key — The SysRq key The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low level commands regardless of the system s state. It is often used to recover from freezes, or to reboot a computer …   Wikipedia

  • Zgv — Infobox Software name = zgv caption = developer = Russell Marks latest release version = 5.9 latest release date = January 28, 2005 operating system = Linux, FreeBSD genre = Image viewer license = GNU General Public License website =… …   Wikipedia

  • General Graphics Interface — infobox software name = General Graphics Interface developer = GGI developers latest release version = 2.2.2 latest release date = release date|2007|01|27 operating system = Cross platform genre = Video games, Multimedia SDK license = BSD license …   Wikipedia

  • Magic SysRq — Die Funktion „S Abf“ (engl. „SysRq“) ist auf IBM AT kompatiblen Tastaturen eine Alternativbelegung der „Druck“ Taste (engl. „Print Screen“) Als Magic SysRq Key (kurz für Magic Sysrequest key, engl.; Magische S Abf Taste ) wird eine Reihe von… …   Deutsch Wikipedia

  • Magic SysRq key — Die Funktion „S Abf“ (engl. „SysRq“) ist auf IBM AT kompatiblen Tastaturen eine Alternativbelegung der „Druck“ Taste (engl. „Print Screen“) Als Magic SysRq Key (kurz für Magic Sysrequest key, engl.; Magische S Abf Taste ) wird eine Reihe von… …   Deutsch Wikipedia

  • Magische S-Abf-Taste — Die Funktion „S Abf“ (engl. „SysRq“) ist auf IBM AT kompatiblen Tastaturen eine Alternativbelegung der „Druck“ Taste (engl. „Print Screen“) Als Magic SysRq Key (kurz für Magic Sysrequest key, engl. „Magische S Abf Taste“) wird eine Reihe von… …   Deutsch Wikipedia

  • Lincity — Лицензия GNU GPL Версия 1.12.1 (2004 08 1 …   Википедия

  • Список эмуляторов NES — Статья представляет собой список эмуляторов игровой консоли NES для различных платформ. Эта статья содержит незавершённый перевод с иностранного языка. Вы можете помочь проекту, переведя её до конца. Если вы знаете, на каком языке написан… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”