Changeset 10411 for code/branches/core7/src/libraries/tools
- Timestamp:
- May 2, 2015, 5:09:15 PM (10 years ago)
- Location:
- code/branches/core7/src/libraries/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/tools/ParticleInterface.cc
r10382 r10411 49 49 { 50 50 unsigned int ParticleInterface::counter_s = 0; 51 ParticleInterface* ParticleInterface::currentParticleInterface_s = 0;52 51 53 52 RegisterAbstractClass(ParticleInterface).inheritsFrom<TimeFactorListener>(); -
code/branches/core7/src/libraries/tools/ParticleInterface.h
r5781 r10411 34 34 #include "util/OgreForwardRefs.h" 35 35 #include "tools/interfaces/TimeFactorListener.h" 36 37 #define getAllEmitters() \38 storeThisAsCurrentParticleInterface(); \39 for (unsigned int i = 0; i < ParticleInterface::getCurrentParticleInterface()->getNumEmitters(); ++i) \40 ParticleInterface::getCurrentParticleInterface()->getEmitter(i)41 36 42 37 namespace orxonox … … 80 75 void setDetailLevel(unsigned int level); 81 76 82 inline void storeThisAsCurrentParticleInterface()83 { ParticleInterface::currentParticleInterface_s = this; }84 inline static ParticleInterface* getCurrentParticleInterface()85 { return ParticleInterface::currentParticleInterface_s; }86 87 77 protected: 88 78 virtual void changedTimeFactor(float factor_new, float factor_old); … … 103 93 unsigned int globalDetailLevel_; //!< Global maximum detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 104 94 105 static ParticleInterface* currentParticleInterface_s;106 95 static unsigned int counter_s; 107 96 };
Note: See TracChangeset
for help on using the changeset viewer.