Changeset 2762 for GTP/trunk/App/Demos/Vis/CHC_revisited/BinaryLoader.cpp
- Timestamp:
- 06/15/08 23:35:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/BinaryLoader.cpp
r2760 r2762 173 173 istr.read(reinterpret_cast<char *>(&shapeCount), sizeof(int)); 174 174 175 geometry.resize(shapeCount); 176 175 177 int progress = 0; 176 178 177 179 for (int i = 0; i < shapeCount; ++ i) 178 180 { 181 int id; 182 istr.read(reinterpret_cast<char *>(&id), sizeof(int)); 183 179 184 SceneEntity *ent = LoadSceneEntity(istr); 180 geometry.push_back(ent); 185 ent->id = id; 186 187 geometry[id] = ent; 181 188 182 189 int p = (i + 1) * 100 / shapeCount; … … 184 191 if (p >= progress) 185 192 { 186 cout << "% loaded: " << p << endl;193 //cout << "% loaded: " << p << endl; 187 194 progress += 10; 188 195 }
Note: See TracChangeset
for help on using the changeset viewer.