- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_warchive.cpp
r12538 r13041 184 184 185 185 // Need to resize the tile table (maybe) 186 // NOTE: Starting with version 2.1, the tile tables will contain only 186 // NOTE: Starting with version 2.1, the tile tables will contain only 187 187 // the lod 0 tiles 188 188 trpgTileTable::TileMode tileTableMode; … … 487 487 tileTable.SetMode(trpgTileTable::External); 488 488 } else if( tileMode == TileExternalSaved) { 489 489 490 490 if(!isRegenerate && firstHeaderWrite) 491 491 { … … 525 525 header.GetLodSize(0,lodSize); 526 526 tileTable.SetNumTiles(lodSize.x, lodSize.y, 0); 527 527 528 528 } 529 529 else … … 539 539 tileTable.SetNumTiles(lodSize.x,lodSize.y,i); 540 540 } 541 541 542 542 } 543 543 firstHeaderWrite = false; 544 544 } 545 545 546 546 547 547 // Now set the individual tile locations … … 559 559 560 560 tf.tiles.clear(); 561 562 563 } 564 } 565 561 562 563 } 564 } 565 566 566 567 567 // Write all the headers into a buffer … … 612 612 } 613 613 } 614 615 614 615 616 616 if(!modelTable.Write(buf) ) 617 617 { … … 1324 1324 isStrip = (c[0] == b[2] && c[1] == b[1]); 1325 1325 b[0] = c[0]; b[1] = c[1]; b[2] = c[2]; 1326 } 1326 } 1327 1327 flip = !flip; 1328 1328 } while (triId < numTri && isStrip); … … 1498 1498 char filename[1024]; 1499 1499 trpgwAppFile *thefile = texFile; 1500 1500 1501 1501 if(geotyp && separateGeoTypical) { 1502 1502 thefile = geotypFile; … … 1511 1511 thefile = NULL; 1512 1512 1513 // Open the next one 1513 // Open the next one 1514 1514 thefile = GetNewWAppFile(ness,filename,true); 1515 1515 if (!thefile->isValid()) … … 1560 1560 geotypFileIDs.push_back(id); 1561 1561 1562 1562 1563 1563 return true; 1564 1564 } … … 1585 1585 return false; 1586 1586 } 1587 1587 1588 1588 while (maxTexFileLen > 0 && thefile->GetLengthWritten() > maxTexFileLen) { 1589 1589 if (!(thefile=IncrementTextureFile(geotyp && separateGeoTypical)))
