[Plib-cvs] plib/src/ssg ssgLoaderWriterStuff.cxx,1.30,1.31
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-06 14:26:50
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3325 Modified Files: ssgLoaderWriterStuff.cxx Log Message: I had committed some internal changes (WKSHORT instead of short). Index: ssgLoaderWriterStuff.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoaderWriterStuff.cxx,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- ssgLoaderWriterStuff.cxx 4 Oct 2004 18:20:25 -0000 1.30 +++ ssgLoaderWriterStuff.cxx 6 Oct 2004 14:25:11 -0000 1.31 @@ -170,7 +170,7 @@ } } for (i = 0; i < l_node->getNumTriangles(); i++) { - WKSHORT v1, v2, v3; + short v1, v2, v3; l_node->getTriangle(i, &v1, &v2, &v3); indices->add( vert_low + v1 ); indices->add( vert_low + v2 ); @@ -528,7 +528,7 @@ sgVec3 v1, v2, n; for (int i = 0; i < indexList->getNum() / 3; i++) { - WKSHORT indices[3] = { *indexList->get( i*3 ), *indexList->get( i*3 + 1), *indexList->get( i*3 + 2) }; + short indices[3] = { *indexList->get( i*3 ), *indexList->get( i*3 + 1), *indexList->get( i*3 + 2) }; sgSubVec3(v1, vertexList->get(indices[1]), vertexList->get(indices[0])); sgSubVec3(v2, vertexList->get(indices[2]), vertexList->get(indices[0])); @@ -574,7 +574,7 @@ { for( j=0; j<oneFace->getNum(); j++ ) { - WKSHORT *ps = (WKSHORT *)oneFace->get(j); + short *ps = oneFace->get(j); float *newTextureCoordinate2 = textureCoordsForOneFace->get( j ); float *oldTextureCoordinate2 = perVertexTextureCoordinates2->get( *ps ); @@ -705,7 +705,7 @@ { ulSetError(UL_DEBUG, "%d Material Indexes:", materialIndices->getNum()); for(i=0;i<materialIndices->getNum();i++) - { WKSHORT s=*(materialIndices->get(i)); + { short s=*(materialIndices->get(i)); ulSetError(UL_DEBUG, "%ld", (long)s); } } @@ -738,7 +738,7 @@ newPerVertexTextureCoordinates2 = new ssgTexCoordArray(); for (j=0; j<theVertices->getNum(); j++) - oldVertexIndexToNewVertexIndex->add ( WKSHORT(0xFFFF) ); // 0xFFFF stands for "unused in new Mesh" + oldVertexIndexToNewVertexIndex->add ( short(0xFFFF) ); // 0xFFFF stands for "unused in new Mesh" // Go through all the old Faces, look for the correct material and copy those // faces and indexes into the new |