| 1311 | } |
| 1312 | |
| 1313 | struct SortPred |
| 1314 | { |
| 1315 | inline bool operator () (const Particle& p1, const Particle& p2) |
| 1316 | { |
| 1317 | return p1.GetSortKey().m_Key < p2.GetSortKey().m_Key; |
| 1318 | } |
| 1319 | |
| 1320 | }; |
| 1321 | |
| 1322 | void GenerateKeys(Emitter* emitter, float max_particle_life_time) |
| 1323 | { |