Changeset 5406 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Oct 19, 2005, 6:30:07 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5397 r5406 508 508 void GraphicsEngine::update(float dt) 509 509 { 510 NullElement2D::getInstance()->update2D(dt);510 Render2D::getInstance()->update(dt); 511 511 } 512 512 -
trunk/src/lib/graphics/render2D/render_2d.cc
r5404 r5406 52 52 53 53 /** 54 * updates all the 2d-elements 55 * @param dt the timestep since last dt 56 */ 57 void Render2D::update(float dt) 58 { 59 NullElement2D::getInstance()->update2D(dt); 60 } 61 62 63 /** 54 64 * ticks all the 2d-elements 55 65 * @param dt the timestep since last dt -
trunk/src/lib/graphics/render2D/render_2d.h
r5405 r5406 22 22 inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D(); return singletonRef; }; 23 23 24 void update(float dt); 24 25 void tick(float dt); 25 26 void draw(short layer) const;
Note: See TracChangeset
for help on using the changeset viewer.