[Plib-cvs] plib/src/ssg ssgLoadTGA.cxx,1.9,1.10
Brought to you by:
sjbaker
From: M?rten Str?m. <str...@us...> - 2003-01-30 00:52:02
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv5928 Modified Files: ssgLoadTGA.cxx Log Message: Added RLE support. Index: ssgLoadTGA.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadTGA.cxx,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- ssgLoadTGA.cxx 2 Sep 2002 06:05:48 -0000 1.9 +++ ssgLoadTGA.cxx 30 Jan 2003 00:51:59 -0000 1.10 @@ -26,14 +26,317 @@ #ifdef SSG_LOAD_TGA_SUPPORTED -#include <sys/stat.h> +//#include <sys/stat.h> /* * Submitted by Sam Stickland : sa...@sp... * Targe loading code based on code written Dave Gay : f0...@bi..., http://personal.nbnet.nb.ca/daveg/ + * + * Jan 29, 2003: [...297 lines suppressed...] + + return ssgMakeMipMaps ( pixels, xsize, ysize, zsize ); + + +#else // old loader: + + #define DEF_targaHeaderLength 12 #define DEF_targaHeaderContent "\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" @@ -132,6 +435,9 @@ info -> alpha = is32Bit? 1: 0 ; } return ssgMakeMipMaps ( texels, width, height, 4) ; + + +#endif } #else |