Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 19, 2005, 6:30:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: update the Element2D-tree in the right order

Location:
trunk/src/lib/graphics/render2D
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/render_2d.cc

    r5404 r5406  
    5252
    5353/**
     54 * updates all the 2d-elements
     55 * @param dt the timestep since last dt
     56 */
     57void Render2D::update(float dt)
     58{
     59  NullElement2D::getInstance()->update2D(dt);
     60}
     61
     62
     63/**
    5464 * ticks all the 2d-elements
    5565 * @param dt the timestep since last dt
  • trunk/src/lib/graphics/render2D/render_2d.h

    r5405 r5406  
    2222    inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
    2323
     24    void update(float dt);
    2425    void tick(float dt);
    2526    void draw(short layer) const;
Note: See TracChangeset for help on using the changeset viewer.