Changeset 2662 for code/trunk/src/orxonox/tools/ParticleInterface.h
- Timestamp:
- Feb 14, 2009, 10:17:35 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/tools/ParticleInterface.h
r2087 r2662 33 33 34 34 #include <string> 35 #include <OgreP articleEmitter.h>35 #include <OgrePrerequisites.h> 36 36 37 37 #include "core/OrxonoxClass.h" 38 38 #include "util/Math.h" 39 #include "gamestates/GSRoot.h" 39 40 40 41 #define getAllEmitters() \ … … 45 46 namespace orxonox 46 47 { 47 class _OrxonoxExport ParticleInterface : public OrxonoxClass48 class _OrxonoxExport ParticleInterface : public TimeFactorListener 48 49 { 49 50 public: … … 53 54 inline Ogre::ParticleSystem* getParticleSystem() const 54 55 { return this->particleSystem_; } 55 56 void addToSceneNode(Ogre::SceneNode* sceneNode);57 void detachFromSceneNode();58 56 59 57 Ogre::ParticleEmitter* createNewEmitter(); … … 69 67 unsigned int getNumAffectors() const; 70 68 71 float getSpeedFactor() const; 69 inline float getSpeedFactor() const 70 { return this->speedFactor_; } 72 71 void setSpeedFactor(float factor); 73 72 bool getKeepParticlesInLocalSpace() const; … … 90 89 { return ParticleInterface::currentParticleInterface_s; } 91 90 91 protected: 92 virtual void changedTimeFactor(float factor_new, float factor_old); 93 92 94 private: 93 95 void updateVisibility(); … … 96 98 static unsigned int counter_s; 97 99 98 Ogre::SceneNode* sceneNode_;99 100 Ogre::ParticleSystem* particleSystem_; 100 101 bool bVisible_; … … 102 103 bool bAllowedByLOD_; 103 104 unsigned int detaillevel_; //!< Detail level of this particle effect (0: off, 1: low, 2: normal, 3: high) 105 float speedFactor_; 104 106 Ogre::SceneManager* scenemanager_; 105 107 };
Note: See TracChangeset
for help on using the changeset viewer.