Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_engine.cc
r4478 r4519 43 43 */ 44 44 ParticleEngine* ParticleEngine::singletonRef = NULL; 45 46 /**47 \returns a Pointer to this Class48 */49 ParticleEngine* ParticleEngine::getInstance(void)50 {51 if (!ParticleEngine::singletonRef)52 ParticleEngine::singletonRef = new ParticleEngine();53 return ParticleEngine::singletonRef;54 }55 45 56 46 /** -
orxonox/trunk/src/lib/particles/particle_engine.h
r4478 r4519 30 30 31 31 public: 32 static ParticleEngine* getInstance(void);33 32 virtual ~ParticleEngine(void); 33 /** \returns a Pointer to the only object of this Class */ 34 inline static ParticleEngine* getInstance(void) { if (!singletonRef) singletonRef = new ParticleEngine(); return singletonRef; }; 34 35 35 36 void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.