Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/particleEngine/src/lib/graphics/particles/particle_engine.cc @ 3930

Last change on this file since 3930 was 3930, checked in by bensch, 19 years ago

orxonox/branches/particleEngine: some more definitions of the particleSystem/Emitter

File size: 1.2 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: ...
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
17
18#include "particle_engine.h"
19
20#include "list.h"
21
22using namespace std;
23
24/**
25   \brief standard constructor
26*/
27ParticleEngine::ParticleEngine () 
28{
29   this->setClassName ("ParticleEngine");
30
31   this->partSysList = new tList<ParticleSystem>;
32}
33
34/**
35   \brief the singleton reference to this class
36*/
37ParticleEngine* ParticleEngine::singletonRef = NULL;
38
39/**
40   \returns a Pointer to this Class
41*/
42ParticleEngine* ParticleEngine::getInstance(void)
43{
44  if (!ParticleEngine::singletonRef)
45    ParticleEngine::singletonRef = new ParticleEngine();
46  return ParticleEngine::singletonRef;
47}
48
49/**
50   \brief standard destructor
51
52*/
53ParticleEngine::~ParticleEngine () 
54{
55  delete this->partSysList;
56
57
58  ParticleEngine::singletonRef = NULL;
59}
Note: See TracBrowser for help on using the repository browser.