Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. This is a quick hack of Quake ported to the Simple DirectMedia Layer library.
  3. http://www.devolution.com/~slouken/SDL/
  4.  
  5. To build under Linux, simply run ./configure; make
  6.  
  7. This game requires the original Quake datafiles.  You can get the shareware
  8. data files from http://www.idsoftware.com/.
  9.  
  10. Of interest in the original X sources is the following:
  11.         // Duff's Device
  12.         count = width;
  13.         n = (count + 7) / 8;
  14.         dest = ((PIXEL16 *)src) + x+width - 1;
  15.         src += x+width - 1;
  16.  
  17.         switch (count % 8) {
  18.         case 0: do {    *dest-- = st2d_8to16table[*src--];
  19.         case 7:         *dest-- = st2d_8to16table[*src--];
  20.         case 6:         *dest-- = st2d_8to16table[*src--];
  21.         case 5:         *dest-- = st2d_8to16table[*src--];
  22.         case 4:         *dest-- = st2d_8to16table[*src--];
  23.         case 3:         *dest-- = st2d_8to16table[*src--];
  24.         case 2:         *dest-- = st2d_8to16table[*src--];
  25.         case 1:         *dest-- = st2d_8to16table[*src--];
  26.                 } while (--n > 0);
  27.         }
  28. This idea may make it into the SDL blitters if it turns out to be faster
  29. than my current code. :)
  30.  
  31. Thanks to Zoid, Dave Taylor, John Carmack, and everyone else involved in the
  32. open source release of id games. :)
  33.  
  34. - Sam Lantinga (slouken@devolution.com) 12/25/1999
  35.