Last change
on this file since 5401 was
5401,
checked in by bensch, 19 years ago
|
orxonox/trunk: new Layering system works, now i have to do the check on reparenting, so no lower layers are children of high-layer-parents
|
File size:
808 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file render_2d.h |
---|
3 | * @brief Definition of the 2D-rendering engine singleton Class |
---|
4 | * @todo implement Layer-rendering |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _RENDER_2D_H |
---|
8 | #define _RENDER_2D_H |
---|
9 | |
---|
10 | #include "base_object.h" |
---|
11 | #include "element_2d.h" |
---|
12 | // FORWARD DEFINITION |
---|
13 | template <class T> class tList; |
---|
14 | |
---|
15 | //! A default singleton class. |
---|
16 | class Render2D : public BaseObject { |
---|
17 | friend class Element2D; |
---|
18 | |
---|
19 | public: |
---|
20 | virtual ~Render2D(); |
---|
21 | /** @returns a Pointer to the only object of this Class */ |
---|
22 | inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D(); return singletonRef; }; |
---|
23 | |
---|
24 | void tick(float dt); |
---|
25 | void draw(E2D_LAYER layer) const; |
---|
26 | |
---|
27 | private: |
---|
28 | Render2D(); |
---|
29 | static Render2D* singletonRef; //!< Reference to this class. |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _RENDER_2D_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.