Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2005, 10:57:45 AM (18 years ago)
Author:
bensch
Message:

orxonox/OM: draw works with new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/lib/graphics/graphics_engine.cc

    r6011 r6126  
    1919#include "resource_manager.h"
    2020#include "event_handler.h"
     21
     22#include "world_entity.h"
    2123
    2224#include "render_2d.h"
     
    573575}
    574576
     577void 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
    575586/**
    576587 * displays the Frames per second
Note: See TracChangeset for help on using the changeset viewer.