Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6126 in orxonox.OLD for branches/objectmanager/src/lib


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

orxonox/OM: draw works with new interface

Location:
branches/objectmanager/src/lib/graphics
Files:
2 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
  • branches/objectmanager/src/lib/graphics/graphics_engine.h

    r5857 r6126  
    1515#include "glincl.h"
    1616
     17#include <list>
     18
    1719// Forward Declaration
    1820class Text;
    1921class IniParser;
    2022class SubString;
     23class WorldEntity;
    2124
    2225//! class to handle graphics
     
    6669    void tick(float dt);
    6770    void draw() const;
     71    void draw(const std::list<WorldEntity*>& drawList) const;
    6872    void displayFPS(bool display);
    6973
Note: See TracChangeset for help on using the changeset viewer.