Changeset 7370 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Apr 26, 2006, 1:31:01 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.cc
r6316 r7370 106 106 //} 107 107 108 void CDEngine::checkCollisions( std::list<WorldEntity*>& list1, std::list<WorldEntity*>& list2)108 void CDEngine::checkCollisions(ObjectManager::EntityList& list1, ObjectManager::EntityList& list2) 109 109 { 110 110 BVTree* tree; 111 std::list<WorldEntity*>::iterator entity1, entity2, pre1, pre2;111 ObjectManager::EntityList::iterator entity1, entity2, pre1, pre2; 112 112 PRINTF(3)("checking for collisions\n"); 113 113 … … 195 195 196 196 197 void CDEngine::drawBV(const std::list<WorldEntity*>& drawList ) const198 { 199 std::list<WorldEntity*>::const_iterator entity;197 void CDEngine::drawBV(const ObjectManager::EntityList& drawList ) const 198 { 199 ObjectManager::EntityList::const_iterator entity; 200 200 for (entity = drawList.begin(); entity != drawList.end(); entity++) 201 201 if ((*entity)->isVisible()) -
trunk/src/lib/data/data_tank.h
r6424 r7370 25 25 virtual ErrorMessage init() {} 26 26 /** loads the data into the DataTank @param root is the xml root parameter for for loadParams() connection */ 27 virtual ErrorMessage loadData( TiXmlElement* root = NULL) {}27 virtual ErrorMessage loadData(const TiXmlElement* root = NULL) {} 28 28 /** unloads the data again from the DataTank */ 29 29 virtual ErrorMessage unloadData() {} -
trunk/src/lib/graphics/graphics_engine.cc
r7319 r7370 584 584 dynamic_cast<GraphicsEffect*>(*it)->draw(); 585 585 } 586 }587 588 void GraphicsEngine::draw(const std::list<WorldEntity*>& drawList ) const589 {590 std::list<WorldEntity*>::const_iterator entity;591 for (entity = drawList.begin(); entity != drawList.end(); entity++)592 if ((*entity)->isVisible())593 (*entity)->draw();594 586 } 595 587 -
trunk/src/lib/graphics/graphics_engine.h
r7256 r7370 69 69 void tick(float dt); 70 70 void draw() const; 71 void draw(const std::list<WorldEntity*>& drawList) const;72 71 void displayFPS(bool display); 73 72
Note: See TracChangeset
for help on using the changeset viewer.