- Timestamp:
- 09/06/06 13:27:40 (18 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GTGeometry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/include/VertexData.h
r1069 r1325 29 29 private: 30 30 unsigned int numinds, numvalidinds; 31 unsigned int current_submesh; 31 32 public: 32 IndexData(unsigned int numi):numinds(numi),numvalidinds(numi){ }33 IndexData(unsigned int numi):numinds(numi),numvalidinds(numi){ current_submesh=0; } 33 34 virtual ~IndexData(void){} 34 35 … … 37 38 virtual void End(void)=0; 38 39 39 // virtual void UpdateData(int*,int)=0;40 41 40 virtual unsigned int GetIndex(unsigned int) const =0; 42 41 unsigned int GetNumMaxIndices(void) const { return numinds; } 43 42 unsigned int GetNumValidIndices(void) const { return numvalidinds; } 44 void SetNumValidIndices(unsigned int valid){ numvalidinds=valid; } 43 void SetNumValidIndices(unsigned int valid){ numvalidinds=valid; } // this should not be called from client applications 44 void SetCurrentSubmesh(unsigned int c){ current_submesh=c; } // this should not be called from client applications 45 unsigned int GetCurrentSubmesh(void) const { return current_submesh; } 45 46 }; 46 47 -
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsLibrary.cpp
r1322 r1325 399 399 400 400 // Copy strips. 401 unsigned int numDegenerated = 2*mTotalStrips - 2;402 dataRetrievalInterface=create_index_data_func(total_strip_size +numDegenerated); // temporal!401 // unsigned int numDegenerated = 2*mTotalStrips - 2; 402 dataRetrievalInterface=create_index_data_func(total_strip_size/*+numDegenerated*/); // temporal! 403 403 dataRetrievalInterface->Begin(); 404 404 … … 612 612 dataRetrievalInterface->Begin(); 613 613 614 int counter = 0; 615 int target_submesh = 0; 616 size_t strip_count = 0; 614 int counter = 0; 615 int target_submesh = 0; 616 size_t strip_count = 0; 617 618 dataRetrievalInterface->SetCurrentSubmesh(target_submesh); 617 619 618 620 for (unsigned int i = 0; i < mTotalStrips; i++, strip_count++) … … 623 625 624 626 if (target_submesh==0) 625 {626 627 offsets_x_submesh[target_submesh] = 0; 627 }628 628 else 629 {630 629 offsets_x_submesh[target_submesh] = indices_x_submesh[target_submesh-1] + offsets_x_submesh[target_submesh-1]; 631 } 632 633 counter = 0; 630 631 counter = 0; 634 632 mStripsSubmesh[target_submesh] = (int)strip_count; 635 strip_count 633 strip_count = 0; 636 634 637 635 target_submesh++; 636 dataRetrievalInterface->SetCurrentSubmesh(target_submesh); 638 637 } 639 638 … … 674 673 strip_count = 0; 675 674 target_submesh++; 675 dataRetrievalInterface->SetCurrentSubmesh(target_submesh); 676 676 } 677 677
Note: See TracChangeset
for help on using the changeset viewer.