[Plib-cvs] plib/tools/src/af2rgb af2rgb.cxx,1.7,1.8
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2002-08-30 19:18:53
|
Update of /cvsroot/plib/plib/tools/src/af2rgb In directory usw-pr-cvs1:/tmp/cvs-serv24341 Modified Files: af2rgb.cxx Log Message: Copyed the palette into this file to make it compile :(. For more, see the comment inside Index: af2rgb.cxx =================================================================== RCS file: /cvsroot/plib/plib/tools/src/af2rgb/af2rgb.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- af2rgb.cxx 1 Jul 2002 09:10:13 -0000 1.7 +++ af2rgb.cxx 30 Aug 2002 19:17:25 -0000 1.8 @@ -10,7 +10,270 @@ #include <stdlib.h> #include <stdio.h> #include <plib/ul.h> -#include <plib/ssgMSFSPalette.h> +//#include <plib/ssgMSFSPalette.h> + +// ugly hack: This is copyied from ssgLoadMDL_BGLTexture.cxx. I do not know whether we will +// keep that file in future, so instead of linking some plib files and including some includes, +// I opted (for now) to copy the following array: +unsigned const char ssgFsTexPalette[1024] = { + 0x00, 0x00, 0x00, 0xff, [...240 lines suppressed...] + 0x84, 0x9c, 0x63, 0xff, + 0x31, 0x42, 0x29, 0xff, + 0x63, 0xa5, 0x5a, 0xff, + 0x4a, 0xd6, 0x4a, 0xff, + 0x39, 0x8c, 0x39, 0xff, + 0x4a, 0xb5, 0x4a, 0xff, + 0x5a, 0xc6, 0x5a, 0xff, + 0x39, 0x7b, 0x39, 0xff, + 0x31, 0x63, 0x31, 0xff, + 0x5a, 0xa5, 0x5a, 0xff, + 0x52, 0x94, 0x52, 0xff, + 0x4a, 0x63, 0x4a, 0xff, + 0x39, 0x73, 0x84, 0xff, + 0x21, 0x63, 0x7b, 0xff, + 0x4a, 0x73, 0x84, 0xff +}; + // *.?af textures are always 256 x 256: #define XSIZE 256 |