Changeset 9406 in orxonox.OLD for trunk/src/story_entities/game_world.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r9235 r9406 512 512 void GameWorld::display () 513 513 { 514 515 // if this server is a dedicated server the game workd does not need to be drawn 516 if( !GraphicsEngine::getInstance()->isDedicated()) 517 { 514 518 // render the reflection texture 515 519 this->renderPassReflection(); 516 520 // redner the refraction texture 517 521 this->renderPassRefraction(); 522 } 518 523 // render all 519 524 this->renderPassAll(); … … 643 648 LightManager::getInstance()->draw(); 644 649 645 /* Draw the BackGround */ 646 this->drawEntityList(State::getObjectManager()->getObjectList(OM_BACKGROUND)); 647 engine->drawBackgroundElements(); 648 649 /* draw all WorldEntiy groups */ 650 for (unsigned int i = 0; i < this->dataTank->drawLists.size(); ++i) 651 this->drawEntityList(State::getObjectManager()->getObjectList(this->dataTank->drawLists[i])); 652 653 AtmosphericEngine::getInstance()->draw(); 654 655 if( unlikely( this->showBV)) 656 { 657 CDEngine* engine = CDEngine::getInstance(); 650 // only render the world if its not dedicated mode 651 if( !GraphicsEngine::getInstance()->isDedicated()) 652 { 653 /* Draw the BackGround */ 654 this->drawEntityList(State::getObjectManager()->getObjectList(OM_BACKGROUND)); 655 engine->drawBackgroundElements(); 656 657 /* draw all WorldEntiy groups */ 658 658 for (unsigned int i = 0; i < this->dataTank->drawLists.size(); ++i) 659 engine->drawBV(State::getObjectManager()->getObjectList(this->dataTank->drawLists[i]), this->showBVLevel); 660 } 661 662 if( unlikely(this->showPNodes)) 663 PNode::getNullParent()->debugDraw(0); 659 this->drawEntityList(State::getObjectManager()->getObjectList(this->dataTank->drawLists[i])); 660 661 AtmosphericEngine::getInstance()->draw(); 662 663 if( unlikely( this->showBV)) 664 { 665 CDEngine* engine = CDEngine::getInstance(); 666 for (unsigned int i = 0; i < this->dataTank->drawLists.size(); ++i) 667 engine->drawBV(State::getObjectManager()->getObjectList(this->dataTank->drawLists[i]), this->showBVLevel); 668 } 669 670 if( unlikely(this->showPNodes)) 671 PNode::getNullParent()->debugDraw(0); 672 673 // draw the game ruls 674 if( likely(this->dataTank->gameRule != NULL)) 675 this->dataTank->gameRule->draw(); 676 } 664 677 665 678 engine->draw(); 666 667 // draw the game ruls668 if( likely(this->dataTank->gameRule != NULL))669 this->dataTank->gameRule->draw();670 679 } 671 680
Note: See TracChangeset
for help on using the changeset viewer.