Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: render2D-class definition

File size: 564 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
[3655]12
13//! A default singleton class.
[4839]14class Render2D : public BaseObject {
[3655]15
16 public:
[4839]17  virtual ~Render2D(void);
[4838]18  /** @returns a Pointer to the only object of this Class */
[4839]19  inline static Render2D* getInstance(void) { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
[3655]20
21 private:
[4839]22  Render2D(void);
23  static Render2D* singletonRef;
[3655]24};
25
[4839]26#endif /* _RENDER_2D_H */
Note: See TracBrowser for help on using the repository browser.