- Timestamp:
- 07/06/06 20:20:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsLibrary.cpp
r1088 r1090 34 34 indices_x_submesh = NULL; 35 35 offsets_x_submesh = NULL; 36 mStripsSubmesh = NULL; 36 37 37 38 // Loads the Level Of Detail file. … … 61 62 if (offsets_x_submesh) 62 63 delete[] offsets_x_submesh; 64 if (mStripsSubmesh) 65 delete[] mStripsSubmesh; 63 66 } 64 67 … … 573 576 mData = lodstripsdata->mData; 574 577 p_changes = lodstripsdata->p_changes; 575 576 577 // Max / Min values for LOD. 578 mLods = int(p_changes.size()); 579 mMaxLod = 0; 580 mMinLod = mLods; 581 582 mPChanges = new SmallInt[mLods]; 583 584 for (unsigned int i = 0; i < mLods; i++) 585 { 586 mPChanges[i] = p_changes[i]; 587 } 588 589 mTotalVertices = int(mFileVertices.size()); 590 mMaxVerticesLOD = mTotalVertices; 591 mTotalStrips = int(mFileStrips.size()); 592 mTotalChanges = int(mFileChangesLOD.size()); 593 594 //Copy the data to the structure we will use 595 CopyVectors2Arrays(); 578 579 mStripsSubmesh = new int [geomesh->mSubMeshCount]; 580 for (int submesh = 0; submesh < geomesh->mSubMeshCount; submesh++) 581 { 582 mStripsSubmesh[submesh]=0; 583 } 584 585 586 // Max / Min values for LOD. 587 mLods = int(p_changes.size()); 588 mMaxLod = 0; 589 mMinLod = mLods; 590 591 mPChanges = new SmallInt[mLods]; 592 593 for (unsigned int i = 0; i < mLods; i++) 594 { 595 mPChanges[i] = p_changes[i]; 596 } 597 598 mTotalVertices = int(mFileVertices.size()); 599 mMaxVerticesLOD = mTotalVertices; 600 mTotalStrips = int(mFileStrips.size()); 601 mTotalChanges = int(mFileChangesLOD.size()); 602 603 //Copy the data to the structure we will use 604 CopyVectors2Arrays(); 596 605 // } 597 606 } … … 618 627 619 628 counter = 0; 629 mStripsSubmesh[target_submesh] = strip_count; 620 630 strip_count = 0; 621 631 target_submesh++; … … 655 665 656 666 counter = 0; 667 mStripsSubmesh[target_submesh] = strip_count; 657 668 strip_count = 0; 658 669 target_submesh++;
Note: See TracChangeset
for help on using the changeset viewer.