- Timestamp:
- Dec 27, 2005, 1:27:56 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.cc
r6222 r6316 195 195 196 196 197 void CDEngine::drawBV(const std::list<WorldEntity*>& drawList ) const 198 { 199 std::list<WorldEntity*>::const_iterator entity; 200 for (entity = drawList.begin(); entity != drawList.end(); entity++) 201 if ((*entity)->isVisible()) 202 (*entity)->drawBVTree(3, 226); 203 } 204 197 205 /** 198 206 * this draws the debug spawn tree -
trunk/src/lib/collision_detection/cd_engine.h
r6142 r6316 57 57 void checkCollisions(std::list<WorldEntity*>& list1, std::list<WorldEntity*>& list2); 58 58 59 void drawBV(const std::list<WorldEntity*>& drawList ) const; 59 60 void debug(); 60 61 -
trunk/src/story_entities/world.cc
r6307 r6316 640 640 engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ)); 641 641 642 if( unlikely( this->showBV)) // to draw the bounding boxes of the objects at level 2 for debug purp 643 { 644 CDEngine* engine = CDEngine::getInstance(); 645 engine->drawBV(State::getObjectManager()->getObjectList(OM_ENVIRON_NOTICK)); 646 engine->drawBV(State::getObjectManager()->getObjectList(OM_ENVIRON)); 647 engine->drawBV(State::getObjectManager()->getObjectList(OM_COMMON)); 648 engine->drawBV(State::getObjectManager()->getObjectList(OM_GROUP_00)); 649 engine->drawBV(State::getObjectManager()->getObjectList(OM_GROUP_01)); 650 engine->drawBV(State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ)); 651 } 652 642 653 // { 643 654 // if( entity->isVisible() ) entity->draw(); 644 655 //FIXME 645 // if( unlikely( this->showBV)) entity->drawBVTree(3, 226); // to draw the bounding boxes of the objects at level 2 for debug purp646 656 // entity = iterator->nextElement(); 647 657 // }
Note: See TracChangeset
for help on using the changeset viewer.