Changeset 5429 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Oct 24, 2005, 7:36:22 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/world.cc
r5406 r5429 76 76 SHELL_COMMAND(speed, World, setSpeed); 77 77 SHELL_COMMAND(togglePNodeVisibility, World, togglePNodeVisibility); 78 SHELL_COMMAND(toggleBVVisibility, World, toggleBVVisibility); 78 79 79 80 using namespace std; … … 174 175 175 176 this->showPNodes = false; 177 this->showBV = false; 176 178 } 177 179 … … 972 974 { 973 975 if( entity->isVisible() ) entity->draw(); 974 //entity->drawBVTree(2, 226); // to draw the bounding boxes of the objects at level 2 for debug purp976 if( unlikely( this->showBV)) entity->drawBVTree(3, 226); // to draw the bounding boxes of the objects at level 2 for debug purp 975 977 entity = iterator->nextElement(); 976 978 } -
trunk/src/story_entities/world.h
r5389 r5429 77 77 78 78 void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; }; 79 void toggleBVVisibility() { this->showBV = !this->showBV; }; 79 80 80 81 private: … … 93 94 private: 94 95 bool showPNodes; //!< if the PNodes should be visible. 96 bool showBV; //!< if the Bounding Volumes should be visible. 95 97 Uint32 lastFrame; //!< last time of frame 96 98 Uint32 cycle; //!< The cycle we are in (starts with 0 and rises with every frame)
Note: See TracChangeset
for help on using the changeset viewer.