Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6316 in orxonox.OLD


Ignore:
Timestamp:
Dec 27, 2005, 1:27:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: now painting the BV's again…. no error due to my change in the static model…. puh :)

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/cd_engine.cc

    r6222 r6316  
    195195
    196196
     197void 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
    197205/**
    198206 * this draws the debug spawn tree
  • trunk/src/lib/collision_detection/cd_engine.h

    r6142 r6316  
    5757  void checkCollisions(std::list<WorldEntity*>& list1, std::list<WorldEntity*>& list2);
    5858
     59  void drawBV(const std::list<WorldEntity*>& drawList ) const;
    5960  void debug();
    6061
  • trunk/src/story_entities/world.cc

    r6307 r6316  
    640640  engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ));
    641641
     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
    642653//   {
    643654//     if( entity->isVisible() ) entity->draw();
    644655  //FIXME
    645 //     if( unlikely( this->showBV)) entity->drawBVTree(3, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
    646656//     entity = iterator->nextElement();
    647657//   }
Note: See TracChangeset for help on using the changeset viewer.