Changeset 5045 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Aug 16, 2005, 9:03:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r5044 r5045 746 746 this->lastFrame = SDL_GetTicks (); 747 747 PRINTF(3)("World::mainLoop() - Entering main loop\n"); 748 /* update the object position before game start - so there are no wrong coordinates used in the first processing */ 749 NullParent::getInstance()->update (0.001f); 750 748 751 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* @todo implement pause */ 749 752 { … … 758 761 // Process time 759 762 this->tick (); 763 // Process collision 764 this->collide (); 760 765 // Update the state 761 766 this->update (); 762 // Process collision763 this->collide ();764 767 // Draw 765 768 this->display (); 766 767 // for( int i = 0; i < 5000000; i++) {} 768 /* @todo this is to slow down the program for openGl Software emulator computers, reimplement*/ 769 } 769 } 770 770 771 PRINTF(3)("World::mainLoop() - Exiting the main loop\n"); 771 772 } … … 926 927 { 927 928 if( entity->isVisible() ) entity->draw(); 928 entity->drawBVTree(2, 226);929 //entity->drawBVTree(2, 226); // to draw the bounding boxes of the objects at level 2 for debug purp 929 930 entity = iterator->nextElement(); 930 931 }
Note: See TracChangeset
for help on using the changeset viewer.