svgalib是一套運行於Linux及FreeBSD下的開放原始碼低階繪圖函式庫,它允許程式設計人員變更視訊模式及全螢幕圖像,許多熱門的電腦遊戲如Quake及Doom都源自此技術。
svgalib在1990年代中期開始並遍,但到2000年之後,多數使用此技術的應用都漸次轉移到了X11 and SDL(Simple DirectMedia Layer)上。
本函式庫很容易使用,可以參考以下程式範例片段:
#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()
參見
- General Graphics Interface (GGI)
外部連結
评论 (0)