SVGALib
| SVGAlib | |
|---|---|
| Original author | Harm Hanemaayer[1] |
| Developer | Matan Ziv-Av |
| Stable release | |
| Preview release | 1.9.25[2]
|
| Written in | C |
| Operating system | AmigaOS, Linux, FreeBSD |
| Platform | PPC, x86, x86-64 |
| Type | Library |
| Website | www |
SVGAlib is an open-source low-level graphics library which ran on AmigaOS, Linux and FreeBSD and allowed programs to change video mode and display full-screen graphics, without the use of a windowing system.[3] [4] Alongside X11 and the General Graphics Interface, it was one of the earliest libraries allowing graphical video games on Linux.
History
[edit ]The first version of SVGALib was based on version 1.2 of another library, VGALib by Tommy Frandsen.[5]
Several games like Ambrosia Software's Maelstrom by Sam Lantinga, the first-person games Freaks! and Space Plumber[6] [7] using the QDGDF library,[8] [9] and most famously id Software's Doom (alongside an X11 version) and Quake (after the submission of a third-party patch based on leaked source code[10] ) were ported to use SVGALib from other operating systems,[11] as was Doom porter Dave Taylor's Abuse .
Wolfenstein 3D was also ported following its source code being released in 1995,[12] as well as the id produced Heretic , Hexen and Hexen II after 1999,[13] and Descent and Descent II by Parallax Software after 1998.[14] Certain source ports for Doom, Quake, and Abuse maintained support for SVGALib.[15] The library is also supported by the MAME/MESS emulator.[16]
First party Linux games that have supported it include Alizarin Tetris,[17] Bdash,[18] Fleuch,[19] Hatman,[20] Intelligent FRAC,[21] Koules,[22] LinCity ,[23] [24] Linberto,[25] Quadra,[26] Repton,[27] SABRE,[28] Thrust (also supported GGI),[29] Zarch,[30] and Zblast,[31] among others.[32] [33] [34]
SVGALib was popular in the mid to late 1990s.[35] [36] A reference book, Linux Graphics Programming with SVGAlib, was authored by Jay Link in 2000.[37] Around the turn of the millennium, many applications that used it migrated to X11 and SDL,[38] which could (until SDL 2.0) make use of SVGAlib as a video driver.[39] [40] This was in part due to the risks of privilege escalation due to SVGAlib requiring applications to run from root.[41] [42] [43]
References
[edit ]- ^ Pitzel, Brad (1994年02月12日). "Sasteroids v1.0 release (vga arcade game)" . Retrieved 2023年10月01日.
This started out as a direct port of xasteroids to run under svgalib (super-vga graphics library by Harm Hanemaayer)
- ^ a b "SVGALIB" . Retrieved 16 October 2022.
- ^ Link, Jay. "SVGAlib Tutorials". www.svgalib.org. Retrieved 16 October 2022.
- ^ Link, Jay (1999年09月30日). "Easy graphics: A beginner's guide to SVGAlib". Developer.com. Retrieved 2023年09月29日.
- ^ "svgalib(7): low level graphics library for - Linux man page". linux.die.net. Retrieved 16 October 2022.
- ^ Wilson, Hamish (2024年09月03日). "Building a Retro Linux Gaming Computer Part 43: Demons and Angels". GamingOnLinux . Retrieved 2024年09月04日.
- ^ "Space Plumber 1.1.0 RC1 review". Nixbit. Retrieved 2023年09月29日.
- ^ TTC Development Team (2001年01月01日). "Quick and Dirty Game Development Framework" . Retrieved 2024年06月07日.
- ^ "Quick and Dirty Game Development Framework 0.9.1 review". Nixbit. Retrieved 2024年06月07日.
- ^ Wilson, Hamish (2023年02月27日). "Building a Retro Linux Gaming Computer - Part 27: Lost Souls". GamingOnLinux . Retrieved 2023年02月27日.
- ^ Karim, Jawed. "Porting MS-DOS Graphics Applications". ACM . Retrieved 2023年09月29日.
- ^ DarkOne (2005年04月10日). "Wolfenstein3D Links". NewWolf. SourceForge . Retrieved 2023年09月26日.
Linux Wolf - Runs either in a window (xwolf3d) or with svgalib (swolf3d).
- ^ Wilson, Hamish (2022年03月15日). "Building a Retro Linux Gaming Computer - Part 16: We Are All Doomed". GamingOnLinux . Retrieved 2023年09月29日.
- ^ ptesone (2004年04月06日). "can only run d1x as root!". Linux Questions. Retrieved 2023年10月04日.
- ^ Wilson, Hamish (2023年11月06日). "Building a Retro Linux Gaming Computer Part 34: Abusing the System". GamingOnLinux . Retrieved 2023年11月07日.
- ^ "SVGAlib help". Easy MAMECab. Retrieved 2023年12月07日.
- ^ "Alizarin Tetris". Home of the Underdogs . Archived from the original on 2006年01月03日. Retrieved 2023年09月29日.
- ^ "Freeware Boulder Dash Clones - Unix". Boulderdash - Martijn's Boulder Dash Fan Site. Retrieved 2023年11月07日.
A Linux clone of Boulder Dash with 256 colour graphics and digitized sounds. It requires the svgalib library.
- ^ Kroll, Jason (2000年01月31日). "GAMES FOCUS". Linux Journal . Retrieved 2023年12月18日.
- ^ Wilson, Hamish (2023年12月12日). "Building a Retro Linux Gaming Computer Part 36: Entertainment for X Windows". GamingOnLinux . Retrieved 2023年12月15日.
Hatman - The Game of Kings is an impressive but undercooked SVGAlib clone of Pacman which does have an RPM package on the disc but sadly had sound support disabled at compilation. There were a number of other Pacman clones featured, but this one had the most potential.
- ^ "Intelligent FRAC". Ice Walkers. 2003年11月20日. Retrieved 2023年09月29日.
- ^ "Impressing Your Friends with RPM". Official Red Hat Linux FAQ. Massachusetts Institute of Technology . Retrieved 2023年09月29日.
- ^ Heuser, Werner; Hampton, Wade W. (2003年02月27日). "Games". Linux Ecology HOWTO. Retrieved 2023年09月29日.
lincity build & maintain a city/country. You are required to build and maintain a city. You must feed, house, provide jobs and goods for your residents. You can build a sustainable economy with the help of renewable energy and recycling, or you can go for broke and build rockets to escape from a pollution ridden and resource starved planet, it's up to you. Due to the finite resources available in any one place, this is not a game that you can leave for long periods of time. This game is similar to the commercial simulation game with a similar name. This package provides files common to both the X and SVGALIB versions of the game.
- ^ Wilson, Hamish (2023年09月04日). "Building a Retro Linux Gaming Computer Part 32: Two Steps Forward, One Step Back" . Retrieved 2023年09月29日.
As well as not being in keeping with the aesthetic, the LCD also had the annoying habit of showing a warning about being out of range on top of what otherwise looked to be a workable display, especially when playing games that utilized SVGAlib for graphics. I could get around this by launching certain more pliant SVGAlib games such as the final build of LinCity before starting up the offending applications, as for whatever reason this would seem to soothe the nerves of the display, but I was more than happy to leave those headaches behind.
- ^ "Linberto". The Linux Game Tome. 2001年04月05日. Retrieved 2023年09月29日.
- ^ "Qundra". Ice Walkers. 2012年02月26日. Retrieved 2023年09月29日.
- ^ Marten, Jonathan (2015年12月08日). "KRepton version 4" . Retrieved 2023年09月29日.
KRepton was originally written by Sandro Sigala for Linux using the SVGAlib library, and then rewritten entirely using the QT and KDE libraries for release 1.0 of KDE.
- ^ Ayers, Larry (1998年07月01日). "Sabre: An Svgalib Flight Sim". Linux Gazette . Retrieved 2023年09月29日.
- ^ Payne, Dennis (2021年09月20日). "Open Game Source: Inertia Blast". LinkedIn . Retrieved 2023年09月29日.
When I first installed Linux I stumbled on a remake of Thrust. It was brutally difficult but I enjoyed the game. At the time I ran it under svgalib, an old console graphic system which required root access.
- ^ Van Os, Thom. "Software". Thom's Toys. Archived from the original on 2016年03月03日. Retrieved 2023年12月18日.
- ^ "zblast-svgalib". Linux Mint . Retrieved 2023年09月29日.
- ^ "Index of /pub/Linux/games/video". ibiblio . Retrieved 2023年09月29日.
- ^ Weller, Michael. "svgalib(7) - Linux man page". die.net. Retrieved 2023年09月29日.
- ^ "Games". Official Red Hat Linux FAQ. Massachusetts Institute of Technology . Retrieved 2023年09月29日.
- ^ Pranevich, Joseph (1999年04月01日). "Linux 2.2 and the Frame-Buffer Console Software". Linux Journal . Retrieved 2023年09月29日.
Limitations aside, SVGALib has proven to be a stable and popular solution to the console problem and is the primary interface used in Quake and other games.
- ^ Wallis, Alistair (2008年05月26日). "Bonus Interview: 'The State Of... Linux Gaming?'". Game Developer . Retrieved 2023年09月29日.
I've always been a video game nerd, so it was important to me to see how much gaming I could do on this new system. I remember how exciting it was to get Doom running fullscreen - [graphics library] svgalib was a monster that I'm sure nobody misses today. I was also quite taken by Maelstrom, a Linux port of a slick Asteroids clone for the Mac.
- ^ timothy (2000年10月26日). "Linux Graphics Programming with SVGAlib". Slashdot . Retrieved 2023年09月29日.
- ^ "SDL Sasteroids". The Linux Game Tome. 2005年04月01日. Retrieved 2023年09月29日.
SDL Sasteroids is a major revision to the original sasteroids game to allow it to run on modern systems. In addition to providing very similar gameplay to the original sasteroids game, a few surprises and updates have been inserted to make it fun for new and old fans. :) Sasteroids was originally an Asteroids game written for svgalib.
- ^ "FAQ: Using SDL". wiki.libsdl.org.
- ^ Armstrong, Ryan (2020年11月18日). "Old X Games". Zerk Zone. Retrieved 2023年09月29日.
That said, I will probably post info on SVGAlib games in the future, as they were a fascinating and forgotten stepping stone towards SDL.
- ^ "Itetris 1.6.1/1.6.2 - Privileged Arbitrary Command Execution". Exploit Database. 2000年12月19日. Retrieved 2023年09月29日.
- ^ Wilson, Hamish (2023年02月27日). "Building a Retro Linux Gaming Computer - Part 27: Lost Souls". GamingOnLinux . Retrieved 2023年09月29日.
- ^ Zimbinski, Bob (1998年08月30日). "Linux Quake HOWTO". 0.1.14. Retrieved 2023年09月29日.
Quake and QuakeWorld servers can be run by any user. The Quake clients, however, need access to your sound and graphics cards, which requires privileges that normal users don't have. One (bad) way to deal with this is to always run Quake as root. Responsible system administrators will cringe at this filthy suggestion. Making the Quake binaries setuid root is a more acceptable solution. Quake can then be run by regular users and still have the privileges it needs to access the sound and graphics devices. Setuid presents a security risk, though. A clever user could exploit a bug or security hole in Quake to gain root access to your system. Of course, if you don't run a multi-user system, this is may not be a big concern.
External links
[edit ]- SVGAlib
- Development versions (link on the site itself is broken)
- SVGAlib - Universal Videogames List