Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2005, 3:32:37 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: more definitions for element2D

File:
1 edited

Legend:

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

    r4839 r4840  
    1010
    1111// FORWARD DEFINITION
     12template <class T> class tList;
     13class Element2D;
    1214
    1315//! A default singleton class.
     
    1517
    1618 public:
    17   virtual ~Render2D(void);
     19  virtual ~Render2D();
    1820  /** @returns a Pointer to the only object of this Class */
    19   inline static Render2D* getInstance(void) { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
     21  inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
     22
     23
     24  void draw() const;
     25
     26  void registerElement2D(Element2D* element2D);
     27  void unregisterElement2D(Element2D* element2D);
    2028
    2129 private:
    22   Render2D(void);
    23   static Render2D* singletonRef;
     30  Render2D();
     31  static Render2D*               singletonRef;           //!< Reference to this class.
     32
     33  tList<Element2D>*              element2DList;          //!< List of all valid 2D-elements.
    2434};
    2535
Note: See TracChangeset for help on using the changeset viewer.