Ignore:
Timestamp:
09/28/06 17:49:37 (18 years ago)
Author:
gumbau
Message:

Updated modules to the new interface and the new simplification algorithm improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMeshLoader.cpp

    r1136 r1526  
    681681                        { 
    682682                                case 0xabcd: 
     683                                         
     684                                        //      Debug. 
    683685                                        cout << "LODSTRIPS_Chunk" << endl; 
     686                                         
    684687                                        lodstripsdata = new Geometry::LodStripsLibraryData; 
    685688 
    686                                         int                             aux,v,c; 
     689                                        int                                                     aux,v,c; 
    687690                                        LODRegisterType lod_register; 
    688                                         LODData                 dataaux; 
    689                                         int                             tam; 
     691                                        LODData                                 dataaux; 
     692                                        int                                                     tam; 
    690693 
    691694                                        fread(&tam, sizeof(int), 1, f); 
     695                                         
    692696                                        lodstripsdata->mFileVertices.clear(); 
    693                                         for (v=0; v<tam; v++) 
     697                                         
     698                                        for (v  =       0; v < tam; v++) 
    694699                                        { 
    695700                                                fread(&aux, sizeof(int), 1, f); 
     
    698703 
    699704                                        lodstripsdata->mFileChangesLOD.clear(); 
     705                                         
    700706                                        fread(&tam, sizeof(int), 1, f); 
    701                                         for (c=0; c<tam; c++) 
     707                                         
     708                                        for (c  =       0; c < tam; c++) 
    702709                                        { 
    703710                                                fread(&dataaux, sizeof(LODData), 1, f); 
     
    706713                                                lod_register.vertexRepetition= dataaux.nL1; 
    707714                                                lod_register.edgeRepetition= dataaux.nL2; 
    708                                                 //lod_register.obligatory=false; 
    709                                                 //lod_register.obligatory= dataaux.obligatory; 
     715                                                lod_register.obligatory=dataaux.obligatory; 
    710716 
    711717                                                lodstripsdata->mFileChangesLOD.push_back(lod_register); 
     
    713719                                         
    714720                                        lodstripsdata->mData.clear(); 
     721                                         
    715722                                        fread(&tam, sizeof(int), 1, f); 
    716                                         for (int b=0; b<tam; b++) 
     723                                         
     724                                        for (int        b       =       0; b < tam; b++) 
    717725                                        { 
    718726                                                fread(&aux, sizeof(int), 1, f); 
     
    721729 
    722730                                        lodstripsdata->p_changes.clear(); 
     731                                         
    723732                                        fread(&tam, sizeof(int), 1, f); 
    724                                         for (int p=0; p<tam; p++) 
     733                                         
     734                                        for (int        p       =       0; p < tam; p++) 
    725735                                        { 
    726736                                                fread(&aux, sizeof(int), 1, f); 
    727737                                                lodstripsdata->p_changes.push_back(aux); 
    728                                         }                                        
     738                                        } 
    729739 
    730740                                        break; 
     
    11461156                                cout    <<      version <<      endl; 
    11471157 
    1148                                 if (strcmp(version,"[MeshSerializer_v1.30]\n")) 
     1158                                /*if (strcmp(version,"[MeshSerializer_v1.30]\n")) 
    11491159                                { 
    11501160                                        //      Debug. 
     
    11561166                                        //      Error. 
    11571167                                        mError  =       true; 
    1158                                 } 
     1168                                }*/ 
    11591169 
    11601170                                while(!feof(pFile)) 
     
    14231433//      Read bones of the submesh. 
    14241434//--------------------------------------------------------------------------- 
    1425 void GeoMeshLoader::readSubMeshBoneAssignment(FILE* f, 
    1426                                                                                                                                                                                         SubMesh* geoSubMesh, 
    1427                                                                                                                                                                                         int option) 
     1435void GeoMeshLoader::readSubMeshBoneAssignment(FILE              *f, 
     1436                                                                                                                                                                                        SubMesh *geoSubMesh, 
     1437                                                                                                                                                                                        int                     option) 
    14281438{ 
    14291439        if (option == GEOMESH_BUILD) 
     
    14451455//      Read bones of the main mesh. 
    14461456//--------------------------------------------------------------------------- 
    1447 void GeoMeshLoader::readMeshBoneAssignment(FILE* f, Mesh* geoMesh,int option) 
     1457void GeoMeshLoader::readMeshBoneAssignment(FILE *f, Mesh        *geoMesh,       int option) 
    14481458{ 
    14491459        if (option == GEOMESH_BUILD) 
     
    14651475//      Read skeleton link. 
    14661476//--------------------------------------------------------------------------- 
    1467 void GeoMeshLoader::readSkeletonLink(FILE* f, Mesh* geoMesh,int option) 
     1477void GeoMeshLoader::readSkeletonLink(FILE       *f, Mesh        *geoMesh,       int option) 
    14681478{ 
    14691479        if (option == GEOMESH_BUILD) 
     
    18291839                const std::vector<face_t> & vecfaces = faces[i]; 
    18301840                std::vector<Geometry::Index> aux_indices; 
     1841                 
    18311842                submesh->mSharedVertexBuffer = true; 
    18321843                submesh->mIndexCount = vecfaces.size()*3; 
Note: See TracChangeset for help on using the changeset viewer.