Changeset 4686 in orxonox.OLD for orxonox/trunk/src/subprojects/collision_detection
- Timestamp:
- Jun 24, 2005, 1:13:32 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4682 r4686 41 41 42 42 int lastFrame, currentFrame, dt; 43 bool drawModel; 43 44 44 45 void Framework::moduleInit(int argc, char** argv) … … 201 202 dt = currentFrame - lastFrame; 202 203 203 if( dt > 55)204 if( dt > 10) 204 205 { 205 206 float fps = 1000/dt; … … 213 214 /* the frame-rate is limited to 100 frames per second, all other things are for nothing. 214 215 */ 215 SDL_Delay((unsigned int)( 50-dt));216 dt = 55;216 SDL_Delay((unsigned int)(10-dt)); 217 dt = 10; 217 218 } 218 219 … … 240 241 while( entity != NULL) /* nextElement() will return NULL at the end */ 241 242 { 243 if( drawModel) 242 244 entity->draw(); 243 245 entity->drawBVTree(depth, drawMode); … … 314 316 315 317 318 int drawModels(GtkWidget* nonInterest, void* widget) 319 { 320 drawModel = !drawModel; 321 } 322 323 316 324 int treeDepth(GtkWidget* nonInterest, void* widget) 317 325 { … … 350 358 351 359 360 CheckButton* DrawModels = new CheckButton("Draw Models"); 361 DrawModels->connectSignal("clicked", (void*)DrawModels, drawModels); 362 windowBox->fill(DrawModels); 363 364 352 365 CheckButton* SeperatingPlanes = new CheckButton("SeperatingPlanes"); 353 366 SeperatingPlanes->connectSignal("clicked", (void*)SeperatingPlanes, seperatingPlanes);
Note: See TracChangeset
for help on using the changeset viewer.