Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4849 in orxonox.OLD for orxonox/trunk/src/lib/graphics/render2D


Ignore:
Timestamp:
Jul 13, 2005, 7:03:05 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: the crosshair now renders as element2d

Location:
orxonox/trunk/src/lib/graphics/render2D
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/render2D/element_2d.h

    r4848 r4849  
    4343
    4444//! A class for ...
    45 class Element2D : public BaseObject {
     45class Element2D : virtual public BaseObject {
    4646
    4747 public:
  • orxonox/trunk/src/lib/graphics/render2D/render_2d.cc

    r4848 r4849  
    7777
    7878
     79void Render2D::tick(float dt)
     80{
     81  tIterator<Element2D>* iterator = this->element2DList->getIterator();
     82  Element2D* elem = iterator->nextElement();
     83  while (elem != NULL)
     84  {
     85    elem->tick(dt);
     86    elem = iterator->nextElement();
     87  }
     88  delete iterator;
     89
     90}
     91
     92/**
     93 * renders all the Elements of the Render2D-engine
     94 */
    7995void Render2D::draw() const
    8096{
  • orxonox/trunk/src/lib/graphics/render2D/render_2d.h

    r4848 r4849  
    2121  inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
    2222
    23 
     23  void tick(float dt);
    2424  void draw() const;
    2525
Note: See TracChangeset for help on using the changeset viewer.