SVGALib

SVGALib

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 lanzamientos originales.

Aunque esta biblioteca fue popular a mediados de la década de los 90, hacia el año 2000 la mayoría de las aplicaciones que la usaban migraron a X11, a SDL o framebuffer.

A continuación se puede observar un pequeño ejemplo de código:

#include <stdlib.h>
#include <unistd.h>
#include <vga.h>
 
int main(void)
{
   int color = 4;
   int x = 10;
   int y = 10;
   unsigned int seconds = 5;
 
    /* detecta el chipset y da derechos de supervisor */
   if (vga_init() < 0)
        return EXIT_FAILURE;
 
   vga_setmode(G320x200x256);
   vga_setcolor(color);
   vga_drawpixel(x, y);
 
   sleep(seconds);
 
    /* restaura el modo texto y regresa a la dirección ordinaria de la
    consola del texto */
   vga_setmode(TEXT);
 
   return EXIT_SUCCESS;
}

Enlaces externos


Wikimedia foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Mira otros diccionarios:

  • 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… …   Wikipedia

  • 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 для различных платформ. Эта статья содержит незавершённый перевод с иностранного языка. Вы можете помочь проекту, переведя её до конца. Если вы знаете, на каком языке написан… …   Википедия

Compartir el artículo y extractos

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