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