Changeset 4849 in orxonox.OLD for orxonox/trunk/src/lib/graphics/render2D
- Timestamp:
- Jul 13, 2005, 7:03:05 PM (20 years ago)
- 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 43 43 44 44 //! A class for ... 45 class Element2D : public BaseObject {45 class Element2D : virtual public BaseObject { 46 46 47 47 public: -
orxonox/trunk/src/lib/graphics/render2D/render_2d.cc
r4848 r4849 77 77 78 78 79 void 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 */ 79 95 void Render2D::draw() const 80 96 { -
orxonox/trunk/src/lib/graphics/render2D/render_2d.h
r4848 r4849 21 21 inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D(); return singletonRef; }; 22 22 23 23 void tick(float dt); 24 24 void draw() const; 25 25
Note: See TracChangeset
for help on using the changeset viewer.