Changeset 4839 in orxonox.OLD for orxonox/trunk/src/lib/graphics/render2D/render_2d.h
- Timestamp:
- Jul 12, 2005, 1:54:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/render2D/render_2d.h
r4838 r4839 1 1 /*! 2 * @file proto_singleton.h3 * @brief Definition of the ...singleton Class2 * @file render_2d.h 3 * @brief Definition of the 2D-rendering engine singleton Class 4 4 */ 5 5 6 #ifndef _ PROTO_SINGLETON_H7 #define _ PROTO_SINGLETON_H6 #ifndef _RENDER_2D_H 7 #define _RENDER_2D_H 8 8 9 9 #include "base_object.h" … … 12 12 13 13 //! A default singleton class. 14 class ProtoSingleton: public BaseObject {14 class Render2D : public BaseObject { 15 15 16 16 public: 17 virtual ~ ProtoSingleton(void);17 virtual ~Render2D(void); 18 18 /** @returns a Pointer to the only object of this Class */ 19 inline static ProtoSingleton* getInstance(void) { if (!singletonRef) singletonRef = new ProtoSingleton(); return singletonRef; };19 inline static Render2D* getInstance(void) { if (!singletonRef) singletonRef = new Render2D(); return singletonRef; }; 20 20 21 21 private: 22 ProtoSingleton(void);23 static ProtoSingleton* singletonRef;22 Render2D(void); 23 static Render2D* singletonRef; 24 24 }; 25 25 26 #endif /* _ PROTO_SINGLETON_H */26 #endif /* _RENDER_2D_H */
Note: See TracChangeset
for help on using the changeset viewer.