Changeset 6126 in orxonox.OLD for branches/objectmanager/src/lib
- Timestamp:
- Dec 15, 2005, 10:57:45 AM (19 years ago)
- Location:
- branches/objectmanager/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/lib/graphics/graphics_engine.cc
r6011 r6126 19 19 #include "resource_manager.h" 20 20 #include "event_handler.h" 21 22 #include "world_entity.h" 21 23 22 24 #include "render_2d.h" … … 573 575 } 574 576 577 void GraphicsEngine::draw(const std::list<WorldEntity*>& drawList ) const 578 { 579 std::list<WorldEntity*>::const_iterator entity; 580 for (entity = drawList.begin(); entity != drawList.end(); entity++) 581 if ((*entity)->isVisible()) 582 (*entity)->draw(); 583 } 584 585 575 586 /** 576 587 * displays the Frames per second -
branches/objectmanager/src/lib/graphics/graphics_engine.h
r5857 r6126 15 15 #include "glincl.h" 16 16 17 #include <list> 18 17 19 // Forward Declaration 18 20 class Text; 19 21 class IniParser; 20 22 class SubString; 23 class WorldEntity; 21 24 22 25 //! class to handle graphics … … 66 69 void tick(float dt); 67 70 void draw() const; 71 void draw(const std::list<WorldEntity*>& drawList) const; 68 72 void displayFPS(bool display); 69 73
Note: See TracChangeset
for help on using the changeset viewer.