Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/volumetric_fog/src/lib/graphics/render2D/render_2d.h @ 10561

Last change on this file since 10561 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 976 bytes
Line 
1/*!
2 * @file render_2d.h
3 * @brief Definition of the 2D-rendering engine singleton Class
4 */
5
6#ifndef _RENDER_2D_H
7#define _RENDER_2D_H
8
9#include "base_object.h"
10#include "element_2d.h"
11// FORWARD DECLARATION
12
13//! A default singleton class.
14class Render2D : public BaseObject
15{
16  ObjectListDeclaration(Render2D);
17
18  friend class Element2D;
19
20public:
21  virtual ~Render2D();
22  /** @returns a Pointer to the only object of this Class */
23  inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
24
25void toggleNodesVisibility() { this->showNodes = !this->showNodes; };
26
27  void update(float dt);
28  void tick(float dt);
29  void draw(E2D_LAYER from, E2D_LAYER to) const;
30
31private:
32  Render2D();
33  static Render2D*              singletonRef;                    //!< Reference to this class.
34
35  bool                          showNodes;                       //!< If the debug-Nodes should be visible
36};
37
38#endif /* _RENDER_2D_H */
Note: See TracBrowser for help on using the repository browser.