Changeset 3925 in orxonox.OLD for orxonox/branches/particleEngine/src/lib
- Timestamp:
- Apr 21, 2005, 4:11:01 PM (19 years ago)
- Location:
- orxonox/branches/particleEngine/src/lib/graphics/particles
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_engine.h
r3923 r3925 10 10 11 11 // FORWARD DEFINITION 12 template<class T> class tList; 13 class ParticleSystem; 14 12 15 13 16 //! A default singleton class. … … 18 21 virtual ~ParticleEngine(void); 19 22 23 void tick(float dt); 24 20 25 private: 21 26 ParticleEngine(void); 22 27 static ParticleEngine* singletonRef; 28 29 tList<ParticleSystem>* partSysList; 23 30 }; 24 31 -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc
r3924 r3925 1 2 3 1 /* 4 2 orxonox - the future of 3D-vertical-scrollers … … 12 10 13 11 ### File Specific: 14 main-programmer: ...12 main-programmer: Benjamin Grauer 15 13 co-programmer: ... 16 14 */ … … 18 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 19 17 20 #include "proto_class.h" 21 22 #include "stdincl.h" // maybe 18 #include "particle_system.h" 23 19 24 20 using namespace std; … … 29 25 \todo this constructor is not jet implemented - do it 30 26 */ 31 P rotoClass::ProtoClass()27 ParticleSystem::ParticleSystem () 32 28 { 33 this->setClassName ("P rotoClass");29 this->setClassName ("ParticleSystem"); 34 30 } 35 31 … … 39 35 40 36 */ 41 P rotoClass::~ProtoClass()37 ParticleSystem::~ParticleSystem () 42 38 { 43 39 // delete what has to be deleted here 44 40 } 45 41 46 /**47 \brief nonsense - delete this method48 \param realy nothing to give49 \returns true or false - probably nothing?50 51 this is just to show the doxygen abilities (this for example is an extension for a long comment)52 */53 bool ProtoClass::doNonSense (int nothing) {} -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.h
r3924 r3925 1 1 /*! 2 \file proto_class.h 3 \brief Definition of the proto class template, used quickly start work 4 \todo Example: this shows how to use simply add a Marker that here has to be done something. 2 \file particle_system.h 5 3 6 The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.7 It is an example for the CODING-CONVENTION, and a starting-point for every class.8 4 */ 9 5 10 #ifndef _P ROTO_CLASS_H11 #define _P ROTO_CLASS_H6 #ifndef _PARTICLE_SYSTEM_H 7 #define _PARTICLE_SYSTEM_H 12 8 13 #include "what realy has to be included"14 9 #include "base_object.h" 15 16 // FORWARD DEFINITION \\ 17 class someClassWeNeed; 10 #include "vector.h" 11 // FORWARD DEFINITION 18 12 19 13 20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/ 14 //! A struct for one Particle 15 typedef struct Particle 16 { 17 float timeToLive; 18 Vector position; 19 Quaternion rotation; 20 21 22 }; 21 23 22 //! A default class that aids you to start creating a new class 23 /** 24 here can be some longer description of this class 25 */ 26 class ProtoClass : public BaseObject { 24 //! A class to handle particle Systems 25 class ParticleSystem : public BaseObject { 27 26 28 27 public: 29 P rotoClass();30 virtual ~P rotoClass();28 ParticleSystem(); 29 virtual ~ParticleSystem(); 31 30 32 bool doNonSense (int nothing);33 31 34 32 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this 33 34 int particleCount; 35 36 Particle* particles; 36 37 37 38 }; 38 39 39 #endif /* _P ROTO_CLASS_H */40 #endif /* _PARTICLE_SYSTEM_H */
Note: See TracChangeset
for help on using the changeset viewer.