[Plib-cvs] plib/src/ssg ssgLoadMDL.cxx,1.52,1.53
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2004-02-25 15:46:51
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13982/plib/src/ssg Modified Files: ssgLoadMDL.cxx Log Message: Fixed some compilation problems for AIX (and added UL_AIX). Fixed some warnings in ssgLoadMDL.cxx Index: ssgLoadMDL.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- ssgLoadMDL.cxx 11 Jan 2004 23:14:38 -0000 1.52 +++ ssgLoadMDL.cxx 25 Feb 2004 15:39:33 -0000 1.53 @@ -1439,10 +1439,14 @@ case 0xB3: //ifinf(1) { - long offset = ulEndianReadLittle32(fp); - unsigned short v = ulEndianReadLittle16(fp); - float low = ulEndianReadLittleFloat(fp); - float high = ulEndianReadLittleFloat(fp); + // long offset = ulEndianReadLittle32(fp); + // unsigned short v = ulEndianReadLittle16(fp); + // float low = ulEndianReadLittleFloat(fp); + // float high = ulEndianReadLittleFloat(fp); + ulEndianReadLittle32(fp); + ulEndianReadLittle16(fp); + ulEndianReadLittleFloat(fp); + ulEndianReadLittleFloat(fp); } break; @@ -1539,7 +1543,8 @@ //assert(curr_part_->getState()->getTexture() != NULL); int base = ulEndianReadLittle16(fp); - int vertexcount = ulEndianReadLittle16(fp); // seems to say how many vertices are used in this part + // int vertexcount = ulEndianReadLittle16(fp); + ulEndianReadLittle16(fp); int wkcount = ulEndianReadLittle16(fp); wkcount = wkcount / 3; // tri assert(wkcount>0); @@ -1574,8 +1579,11 @@ case 0xBA: //, DrawLineList, anaDrawLineList, 0 ) { - int base = ulEndianReadLittle16(fp); - int dummycount = ulEndianReadLittle16(fp); + // int base = ulEndianReadLittle16(fp); + // int dummycount = ulEndianReadLittle16(fp); + ulEndianReadLittle16(fp); + ulEndianReadLittle16(fp); + int wkcount = ulEndianReadLittle16(fp); wkcount = wkcount / 2; fseek(fp, 2*2*wkcount, SEEK_CUR); @@ -1584,8 +1592,11 @@ case 0xBB: //, DrawPointList, anaDrawPointList, 0 ) { - int base = ulEndianReadLittle16(fp); - int dummycount = ulEndianReadLittle16(fp); + // int base = ulEndianReadLittle16(fp); + // int dummycount = ulEndianReadLittle16(fp); + ulEndianReadLittle16(fp); + ulEndianReadLittle16(fp); + int wkcount = ulEndianReadLittle16(fp); wkcount = wkcount / 1; fseek(fp, 2*1*wkcount, SEEK_CUR); @@ -1594,8 +1605,8 @@ case 0xBC: // BGL_BEGIN / BGLVersion { - //DEBUGPRINT( "BGL_CASE\n" ); - long v = ulEndianReadLittle32(fp); + // long v = ulEndianReadLittle32(fp); + ulEndianReadLittle32(fp); PRINT_STRUCTURE("BGLVersion %lx\n", v) } |