SVGALib

来自Local Chinese Wikipedia
imported>InternetArchiveBot2021年8月9日 (一) 10:50的版本 (补救1个来源,并将0个来源标记为失效。) #IABot (v2.0.8) (Yining Chen - 8469)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

页面Module:Infobox/styles.css没有内容。

SVGALib
脚本错误:没有“InfoboxImageVariant”这个模块。
原作者Harm Hanemaayer
当前版本1.4.3(2001年6月2日,​脚本错误:没有“TimeAgo”这个模块。​(2001-06-02
预览版本1.9.25
编程语言C
操作系统Linux, FreeBSD
平台x86, x86-64
类型
网站www.svgalib.org
脚本错误:没有“Template wrapper”这个模块。

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

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;
}

參見[编辑]

package.lua第80行Lua错误:module 'Module:Portal/images/chinese' not found

外部連結[编辑]