- Timestamp:
- Jul 12, 2005, 1:54:38 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r4838 r4839 68 68 lib/graphics/light.cc \ 69 69 lib/graphics/text_engine.cc \ 70 lib/graphics/render2D/element_2D.cc \ 70 lib/graphics/render2D/element_2d.cc \ 71 lib/graphics/render2D/render_2d.cc \ 71 72 lib/lang/base_object.cc \ 72 73 lib/lang/class_list.cc \ … … 135 136 lib/graphics/text_engine.h \ 136 137 lib/lang/base_object.h \ 138 lib/graphics/render2D/element_2d.h \ 139 lib/graphics/render2D/render_2d.h \ 137 140 lib/lang/class_list.h \ 138 141 lib/util/ini_parser.h \ -
orxonox/trunk/src/Makefile.in
r4838 r4839 75 75 orxonox-null_parent.$(OBJEXT) \ 76 76 orxonox-graphics_engine.$(OBJEXT) orxonox-light.$(OBJEXT) \ 77 orxonox-text_engine.$(OBJEXT) orxonox-element_2 D.$(OBJEXT) \78 orxonox- base_object.$(OBJEXT) orxonox-class_list.$(OBJEXT) \79 orxonox- ini_parser.$(OBJEXT) orxonox-substring.$(OBJEXT) \80 orxonox- vector.$(OBJEXT) orxonox-curve.$(OBJEXT) \81 orxonox- glmenu_imagescreen.$(OBJEXT) \77 orxonox-text_engine.$(OBJEXT) orxonox-element_2d.$(OBJEXT) \ 78 orxonox-render_2d.$(OBJEXT) orxonox-base_object.$(OBJEXT) \ 79 orxonox-class_list.$(OBJEXT) orxonox-ini_parser.$(OBJEXT) \ 80 orxonox-substring.$(OBJEXT) orxonox-vector.$(OBJEXT) \ 81 orxonox-curve.$(OBJEXT) orxonox-glmenu_imagescreen.$(OBJEXT) \ 82 82 orxonox-benchmark.$(OBJEXT) 83 83 orxonox_OBJECTS = $(am_orxonox_OBJECTS) … … 97 97 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-crosshair.Po \ 98 98 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-curve.Po \ 99 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-element_2 D.Po \99 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-element_2d.Po \ 100 100 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-environment.Po \ 101 101 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-factory.Po \ … … 114 114 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-player.Po \ 115 115 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-projectile.Po \ 116 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-render_2d.Po \ 116 117 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-resource_manager.Po \ 117 118 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-satellite.Po \ … … 318 319 lib/graphics/light.cc \ 319 320 lib/graphics/text_engine.cc \ 320 lib/graphics/render2D/element_2D.cc \ 321 lib/graphics/render2D/element_2d.cc \ 322 lib/graphics/render2D/render_2d.cc \ 321 323 lib/lang/base_object.cc \ 322 324 lib/lang/class_list.cc \ … … 385 387 lib/graphics/text_engine.h \ 386 388 lib/lang/base_object.h \ 389 lib/graphics/render2D/element_2d.h \ 390 lib/graphics/render2D/render_2d.h \ 387 391 lib/lang/class_list.h \ 388 392 lib/util/ini_parser.h \ … … 482 486 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-crosshair.Po@am__quote@ 483 487 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-curve.Po@am__quote@ 484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-element_2 D.Po@am__quote@488 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-element_2d.Po@am__quote@ 485 489 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-environment.Po@am__quote@ 486 490 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-factory.Po@am__quote@ … … 499 503 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-player.Po@am__quote@ 500 504 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-projectile.Po@am__quote@ 505 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-render_2d.Po@am__quote@ 501 506 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-resource_manager.Po@am__quote@ 502 507 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-satellite.Po@am__quote@ … … 1143 1148 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text_engine.obj `if test -f 'lib/graphics/text_engine.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine.cc'; fi` 1144 1149 1145 orxonox-element_2D.o: lib/graphics/render2D/element_2D.cc 1146 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2D.o -MD -MP -MF "$(DEPDIR)/orxonox-element_2D.Tpo" -c -o orxonox-element_2D.o `test -f 'lib/graphics/render2D/element_2D.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2D.cc; \ 1147 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2D.Tpo" "$(DEPDIR)/orxonox-element_2D.Po"; else rm -f "$(DEPDIR)/orxonox-element_2D.Tpo"; exit 1; fi 1148 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2D.cc' object='orxonox-element_2D.o' libtool=no @AMDEPBACKSLASH@ 1149 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2D.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2D.TPo' @AMDEPBACKSLASH@ 1150 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1151 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2D.o `test -f 'lib/graphics/render2D/element_2D.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2D.cc 1152 1153 orxonox-element_2D.obj: lib/graphics/render2D/element_2D.cc 1154 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2D.obj -MD -MP -MF "$(DEPDIR)/orxonox-element_2D.Tpo" -c -o orxonox-element_2D.obj `if test -f 'lib/graphics/render2D/element_2D.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2D.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2D.cc'; fi`; \ 1155 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2D.Tpo" "$(DEPDIR)/orxonox-element_2D.Po"; else rm -f "$(DEPDIR)/orxonox-element_2D.Tpo"; exit 1; fi 1156 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2D.cc' object='orxonox-element_2D.obj' libtool=no @AMDEPBACKSLASH@ 1157 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2D.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2D.TPo' @AMDEPBACKSLASH@ 1158 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1159 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2D.obj `if test -f 'lib/graphics/render2D/element_2D.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2D.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2D.cc'; fi` 1150 orxonox-element_2d.o: lib/graphics/render2D/element_2d.cc 1151 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2d.o -MD -MP -MF "$(DEPDIR)/orxonox-element_2d.Tpo" -c -o orxonox-element_2d.o `test -f 'lib/graphics/render2D/element_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2d.cc; \ 1152 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2d.Tpo" "$(DEPDIR)/orxonox-element_2d.Po"; else rm -f "$(DEPDIR)/orxonox-element_2d.Tpo"; exit 1; fi 1153 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2d.cc' object='orxonox-element_2d.o' libtool=no @AMDEPBACKSLASH@ 1154 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2d.TPo' @AMDEPBACKSLASH@ 1155 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1156 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2d.o `test -f 'lib/graphics/render2D/element_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2d.cc 1157 1158 orxonox-element_2d.obj: lib/graphics/render2D/element_2d.cc 1159 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2d.obj -MD -MP -MF "$(DEPDIR)/orxonox-element_2d.Tpo" -c -o orxonox-element_2d.obj `if test -f 'lib/graphics/render2D/element_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2d.cc'; fi`; \ 1160 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2d.Tpo" "$(DEPDIR)/orxonox-element_2d.Po"; else rm -f "$(DEPDIR)/orxonox-element_2d.Tpo"; exit 1; fi 1161 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2d.cc' object='orxonox-element_2d.obj' libtool=no @AMDEPBACKSLASH@ 1162 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2d.TPo' @AMDEPBACKSLASH@ 1163 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1164 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2d.obj `if test -f 'lib/graphics/render2D/element_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2d.cc'; fi` 1165 1166 orxonox-render_2d.o: lib/graphics/render2D/render_2d.cc 1167 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-render_2d.o -MD -MP -MF "$(DEPDIR)/orxonox-render_2d.Tpo" -c -o orxonox-render_2d.o `test -f 'lib/graphics/render2D/render_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/render_2d.cc; \ 1168 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-render_2d.Tpo" "$(DEPDIR)/orxonox-render_2d.Po"; else rm -f "$(DEPDIR)/orxonox-render_2d.Tpo"; exit 1; fi 1169 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/render_2d.cc' object='orxonox-render_2d.o' libtool=no @AMDEPBACKSLASH@ 1170 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-render_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-render_2d.TPo' @AMDEPBACKSLASH@ 1171 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1172 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-render_2d.o `test -f 'lib/graphics/render2D/render_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/render_2d.cc 1173 1174 orxonox-render_2d.obj: lib/graphics/render2D/render_2d.cc 1175 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-render_2d.obj -MD -MP -MF "$(DEPDIR)/orxonox-render_2d.Tpo" -c -o orxonox-render_2d.obj `if test -f 'lib/graphics/render2D/render_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/render_2d.cc'; fi`; \ 1176 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-render_2d.Tpo" "$(DEPDIR)/orxonox-render_2d.Po"; else rm -f "$(DEPDIR)/orxonox-render_2d.Tpo"; exit 1; fi 1177 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/render_2d.cc' object='orxonox-render_2d.obj' libtool=no @AMDEPBACKSLASH@ 1178 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-render_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-render_2d.TPo' @AMDEPBACKSLASH@ 1179 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1180 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-render_2d.obj `if test -f 'lib/graphics/render2D/render_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/render_2d.cc'; fi` 1160 1181 1161 1182 orxonox-base_object.o: lib/lang/base_object.cc … … 1409 1430 1410 1431 distdir: $(DISTFILES) 1411 $(mkdir_p) $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/graphics $(distdir)/lib/ lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities $(distdir)/world_entities/weapons1432 $(mkdir_p) $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/graphics $(distdir)/lib/graphics/render2D $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities $(distdir)/world_entities/weapons 1412 1433 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 1413 1434 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ -
orxonox/trunk/src/defs/class_id.h
r4838 r4839 108 108 CL_STATE = 0x00000f13, 109 109 CL_FRAMEWORK = 0x00000f14, 110 110 CL_RENDER_2D = 0x00000f15, 111 111 112 112 -
orxonox/trunk/src/lib/graphics/render2D/element_2d.cc
r4838 r4839 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include "element_2 D.h"18 #include "element_2d.h" 19 19 20 20 using namespace std; … … 29 29 this->setClassID(CL_ELEMENT_2D, "Element2D"); 30 30 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 31 } 42 43 32 44 33 /** -
orxonox/trunk/src/lib/graphics/render2D/element_2d.h
r4838 r4839 1 1 /*! 2 * @file element_2 D.h2 * @file element_2d.h 3 3 * @brief Definition of the 2D elements rendered on top through the GraphicsEngine 4 4 */ … … 11 11 // FORWARD DECLARATION 12 12 13 //!< An enumerator defining the Depth of a 2D-element. 14 typedef enum 15 { 16 E2D_TOP, //!< Will be rendered on top of everything else 17 E2D_MEDIUM, //!< Will be rendered on the medium Layer. 18 E2D_BOTTOM, //!< Will be rendered on the bottom Layer 19 E2D_BELOW_ALL //!< Will be rendered below the 3D-scene. @todo make this work. 20 }E2DDepth; 21 13 22 //! A class for ... 14 23 class Element2D : public BaseObject { … … 20 29 21 30 private: 31 bool bDraw; 32 int position2D[2]; //!< X-coord, Y-Coord 33 E2DDepth depth; 22 34 23 35 }; 24 36 37 25 38 #endif /* _ELEMENT_2D_H */ -
orxonox/trunk/src/lib/graphics/render2D/render_2d.cc
r4838 r4839 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 17 18 #include " proto_singleton.h"18 #include "render_2d.h" 19 19 20 20 using namespace std; 21 21 22 22 23 … … 24 25 * standard constructor 25 26 */ 26 ProtoSingleton::ProtoSingleton()27 Render2D::Render2D () 27 28 { 28 this->setClass Name("ProtoSingleton");29 this->set ClassID(CL_PROTO_ID, "ProtoSingleton");29 this->setClassID(CL_RENDER_2D, "Render2D"); 30 this->setName("Render2D"); 30 31 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 32 } 42 33 … … 44 35 * the singleton reference to this class 45 36 */ 46 ProtoSingleton* ProtoSingleton::singletonRef = NULL;37 Render2D* Render2D::singletonRef = NULL; 47 38 48 39 /** 49 40 @brief standard deconstructor 50 41 */ 51 ProtoSingleton::~ProtoSingleton()42 Render2D::~Render2D () 52 43 { 53 ProtoSingleton::singletonRef = NULL;44 Render2D::singletonRef = NULL; 54 45 } -
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 */ -
orxonox/trunk/src/proto/proto_singleton.cc
r4838 r4839 26 26 ProtoSingleton::ProtoSingleton () 27 27 { 28 this->setClassName("ProtoSingleton");29 28 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 29 this->setName("ProtoSingleton"); 30 30 31 31 /* If you make a new class, what is most probably the case when you write this file
Note: See TracChangeset
for help on using the changeset viewer.