fbpx
维基百科

SVGALib

svgalib是一套運行於LinuxFreeBSD下的開放原始碼低階繪圖函式庫,它允許程式設計人員變更視訊模式及全螢幕圖像,許多熱門的電腦遊戲如QuakeDoom都源自此技術。

SVGALib
原作者Harm Hanemaayer
编程语言C
操作系统Linux, FreeBSD
系統平台x86, x86-64
类型
网站www.svgalib.org

svgalib在1990年代中期開始並遍,但到2000年之後,多數使用此技術的應用都漸次轉移到了X11 and SDL(Simple DirectMedia Layer)上。

本函式庫很容易使用,可以參考以下程式範例片段:

  #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;  /* 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; } 

參見 编辑

  • General Graphics Interface (GGI)

外部連結 编辑

svgalib, svgalib是一套運行於linux及freebsd下的開放原始碼低階繪圖函式庫, 它允許程式設計人員變更視訊模式及全螢幕圖像, 許多熱門的電腦遊戲如quake及doom都源自此技術, 原作者harm, hanemaayer编程语言c操作系统linux, freebsd系統平台x86, 64类型库网站www, svgalib, orgsvgalib在1990年代中期開始並遍, 但到2000年之後, 多數使用此技術的應用都漸次轉移到了x11, simple, directmedia, layer, . svgalib是一套運行於Linux及FreeBSD下的開放原始碼低階繪圖函式庫 它允許程式設計人員變更視訊模式及全螢幕圖像 許多熱門的電腦遊戲如Quake及Doom都源自此技術 SVGALib原作者Harm Hanemaayer编程语言C操作系统Linux FreeBSD系統平台x86 x86 64类型库网站www wbr svgalib wbr orgsvgalib在1990年代中期開始並遍 但到2000年之後 多數使用此技術的應用都漸次轉移到了X11 and SDL Simple DirectMedia Layer 上 本函式庫很容易使用 可以參考以下程式範例片段 include lt stdlib h gt include lt unistd h gt include lt vga h gt 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 lt 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 參見 编辑 nbsp 自由软件主题 General Graphics Interface GGI 外部連結 编辑http www svgalib org 页面存档备份 存于互联网档案馆 取自 https zh wikipedia org w index php title SVGALib amp oldid 67029934, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。