请输入您要查询的百科知识:

 

词条 SVGALib
释义

  1. History

  2. Sample

  3. See also

  4. External links

{{Infobox software
| name = SVGALib
| logo =
| screenshot =
| caption =
| collapsible =
| author = Harm Hanemaayer
| developer =
| released =
| latest release version = 1.4.3
| latest release date = {{start date and age|2001|06|02}}
| latest preview version = 1.9.25
| latest preview date =
| frequently updated =
| programming language = C
| operating system = Linux, FreeBSD
| platform = x86, x86-64
| size =
| language =
| status =
| genre = Library
| license =
| website = {{url|http://www.svgalib.org/}}
}}

SVGAlib was 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 have been ported to use SVGAlib.

History

The library was popular in mid-1990s.{{citation needed|date=October 2016}} Toward 2000, many applications that used it migrated to X11 and SDL{{citation needed|date=October 2016}}, 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(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);
   /* restore textmode and fall back to ordinary text console handling */   vga_setmode(TEXT);

}

See also

{{Portal|Free and open-source software}}
  • DirectFB
  • General Graphics Interface (GGI)
  • Linux framebuffer

External links

  • SVGAlib
  • svgalib windows
{{DEFAULTSORT:Svgalib}}

3 : Articles with example C code|Free computer libraries|Graphics libraries

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/28 5:22:53