- Timestamp:
- 09/29/06 11:19:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsConstructor.cpp
r1526 r1541 326 326 327 327 Orden.vQslimNext = theStep.mV0; 328 Orden.vQslim = theStep.mV1;328 Orden.vQslim = theStep.mV1; 329 329 Orden.obligatory = theStep.obligatory; 330 Orden.vLS = i;331 332 Orden.x = theStep.x;330 Orden.vLS = i; 331 332 Orden.x = theStep.x; 333 333 Orden.vLSNext = -1; 334 334 Orden.cambio = "n"; … … 337 337 } 338 338 339 340 339 update = -1; 341 340 increment = (float)(10.0) / (float)(Ordenacion.size()); … … 362 361 363 362 cVerts[OrdvQslim].Next = -1; 364 365 363 } 366 364 … … 569 567 int vertexCount = (int)this->cVerts.size(); 570 568 int changesCount = (int)this->cCambios.size(); 571 int dataCount = (int)this->cDatos.size();569 int dataCount = (int)this->cDatos.size(); 572 570 int cambiosCount = this->TOTALCAMBIOS; 573 int size = changesCount*sizeof(LODData) + 574 (vertexCount + dataCount + cambiosCount + 4)*sizeof(int) + 575 CHUNK_OVERHEAD_SIZE; 576 577 FILE *f = fopen(filename.c_str(),"ab"); 578 579 unsigned short chunkid = 0xabcd; 580 fwrite(&chunkid,sizeof(unsigned short),1,f); 571 int size = changesCount*sizeof(LODData) 572 + 573 (vertexCount + dataCount + cambiosCount + 4) 574 * 575 sizeof(int) 576 + 577 CHUNK_OVERHEAD_SIZE; 578 579 FILE *f = fopen(filename.c_str(),"ab"); 580 581 unsigned short chunkid = 0xabcd; 582 583 fwrite(&chunkid,sizeof(unsigned short),1,f); 581 584 fwrite(&size,sizeof(unsigned long),1,f); 582 585 583 // VERTICES 586 // VERTICES. 584 587 fwrite(&vertexCount, sizeof(int), 1, f); 585 for(size_t i = 0; i < this->cVerts.size(); i++) 586 { 587 int auxv = cVerts[i].Next; 588 589 for (size_t i = 0; i < this->cVerts.size(); i++) 590 { 591 int auxv = cVerts[i].Next; 588 592 fwrite(&auxv, sizeof(int), 1, f); 589 593 } 590 594 591 595 // CSTRIPS. 592 596 this->TOTALINDICES = 0; 593 597 594 598 for(size_t i = 0; i < this->cStrips.size(); i++) 599 { 595 600 this->TOTALINDICES += int(this->cStrips[i].size()); 601 } 596 602 597 603 // lines starting with a d.
Note: See TracChangeset
for help on using the changeset viewer.