Changeset 2793 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 06/20/08 20:04:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2792 r2793 34 34 /// the hierarchy 35 35 Bvh *bvh = NULL; 36 /// handles scene loading 37 BinaryLoader *loader = NULL; 36 38 /// the scene camera 37 39 Camera *camera = NULL; … … 50 52 int maxBatchSize = 50; 51 53 52 const float keyForwardMotion = 1.0f;54 const float keyForwardMotion = 0.5f; 53 55 const float keyRotation = 0.05f; 54 56 … … 131 133 int returnCode = 0; 132 134 133 //#ifdef _CRT_SET135 #ifdef _CRT_SET 134 136 135 137 //Now just call this function at the start of your program and if you're … … 142 144 _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 143 145 _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR); 144 //#endif146 #endif 145 147 146 148 … … 170 172 MiddleMotion(0, 0); 171 173 172 BinaryLoader loader; 174 175 loader = new BinaryLoader(); 173 176 174 177 //const string filename("data/city/model/city.dem"); 175 178 const string filename = string(model_path + "city.dem"); 176 179 177 if (loader .Load(filename, sceneEntities))180 if (loader->Load(filename, sceneEntities)) 178 181 cout << "scene " << filename << " loaded" << endl; 179 182 else … … 183 186 exit(0); 184 187 } 185 CleanUp();186 exit(0);187 188 188 189 const string bvh_filename = string(model_path + "city.bvh"); … … 974 975 DEL_PTR(visualization); 975 976 DEL_PTR(camera); 977 978 DEL_PTR(loader); 976 979 } 977 980
Note: See TracChangeset
for help on using the changeset viewer.