Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/graphics/render2D/render_2d.h @ 4847

Last change on this file since 4847 was 4840, checked in by bensch, 19 years ago

orxonox/trunk: more definitions for element2D

File size: 871 bytes
RevLine 
[4838]1/*!
[4839]2 * @file render_2d.h
3 * @brief Definition of the 2D-rendering engine singleton Class
[3655]4*/
5
[4839]6#ifndef _RENDER_2D_H
7#define _RENDER_2D_H
[3655]8
9#include "base_object.h"
10
[3955]11// FORWARD DEFINITION
[4840]12template <class T> class tList;
13class Element2D;
[3655]14
15//! A default singleton class.
[4839]16class Render2D : public BaseObject {
[3655]17
18 public:
[4840]19  virtual ~Render2D();
[4838]20  /** @returns a Pointer to the only object of this Class */
[4840]21  inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
[3655]22
[4840]23
24  void draw() const;
25
26  void registerElement2D(Element2D* element2D);
27  void unregisterElement2D(Element2D* element2D);
28
[3655]29 private:
[4840]30  Render2D();
31  static Render2D*               singletonRef;           //!< Reference to this class.
32
33  tList<Element2D>*              element2DList;          //!< List of all valid 2D-elements.
[3655]34};
35
[4839]36#endif /* _RENDER_2D_H */
Note: See TracBrowser for help on using the repository browser.