Changeset 4889 for nanovis/branches/1.1/ParticleSystem.h
- Timestamp:
- Dec 19, 2014 10:00:34 PM (9 years ago)
- Location:
- nanovis/branches/1.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.1
- Property svn:mergeinfo changed
/trunk/packages/vizservers/nanovis merged: 3611-3614,3617-3618
- Property svn:mergeinfo changed
-
nanovis/branches/1.1/ParticleSystem.h
r3502 r4889 4 4 * 5 5 */ 6 #ifndef PARTICLESYSTEM_H7 #define PARTICLESYSTEM_H6 #ifndef NV_PARTICLESYSTEM_H 7 #define NV_PARTICLESYSTEM_H 8 8 9 9 #include <vector> … … 23 23 24 24 #include "CircularQueue.h" 25 26 namespace nv { 25 27 26 28 struct NewParticle { … … 47 49 }; 48 50 49 namespace std 50 { 51 template <> 52 struct greater<ActiveParticle> { 53 bool operator() (const ActiveParticle& left, const ActiveParticle& right) 54 { 55 return left.timeOfDeath > right.timeOfDeath; 56 } 57 }; 58 } 51 struct particle_greater { 52 bool operator() (const ActiveParticle& left, const ActiveParticle& right) 53 { 54 return (left.timeOfDeath > right.timeOfDeath); 55 } 56 }; 59 57 60 58 struct color4 { … … 171 169 172 170 priority_queue_vector<int, std::greater<int> > _availableIndices; 173 priority_queue_vector<ActiveParticle, std::greater<ActiveParticle>> _activeParticles;171 priority_queue_vector<ActiveParticle, particle_greater > _activeParticles; 174 172 std::vector<NewParticle> _newParticles; 175 173 … … 409 407 } 410 408 409 } 410 411 411 #endif
Note: See TracChangeset
for help on using the changeset viewer.