https://github.com/klange/sdlquake
mirror of sdlquake with some toaruos patches?
https://github.com/klange/sdlquake
Last synced: 11 months ago
JSON representation
mirror of sdlquake with some toaruos patches?
- Host: GitHub
- URL: https://github.com/klange/sdlquake
- Owner: klange
- License: gpl-2.0
- Created: 2018-11-26T13:50:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T02:08:28.000Z (about 2 years ago)
- Last Synced: 2025-01-06T22:32:13.549Z (about 1 year ago)
- Language: C
- Size: 1.55 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.SDL
- License: COPYING
Awesome Lists containing this project
README
This is a quick hack of Quake ported to the Simple DirectMedia Layer library.
http://www.devolution.com/~slouken/SDL/
To build under Linux, simply run ./configure; make
This game requires the original Quake datafiles. You can get the shareware
data files from http://www.idsoftware.com/.
Of interest in the original X sources is the following:
// Duff's Device
count = width;
n = (count + 7) / 8;
dest = ((PIXEL16 *)src) + x+width - 1;
src += x+width - 1;
switch (count % 8) {
case 0: do { *dest-- = st2d_8to16table[*src--];
case 7: *dest-- = st2d_8to16table[*src--];
case 6: *dest-- = st2d_8to16table[*src--];
case 5: *dest-- = st2d_8to16table[*src--];
case 4: *dest-- = st2d_8to16table[*src--];
case 3: *dest-- = st2d_8to16table[*src--];
case 2: *dest-- = st2d_8to16table[*src--];
case 1: *dest-- = st2d_8to16table[*src--];
} while (--n > 0);
}
This idea may make it into the SDL blitters if it turns out to be faster
than my current code. :)
Thanks to Zoid, Dave Taylor, John Carmack, and everyone else involved in the
open source release of id games. :)
- Sam Lantinga (slouken@devolution.com) 12/25/1999