Add an effect to the timeline
| 362 | |
| 363 | // Add an effect to the timeline |
| 364 | void Timeline::AddEffect(EffectBase* effect) |
| 365 | { |
| 366 | // Get lock (prevent getting frames while this happens) |
| 367 | const std::lock_guard<std::recursive_mutex> guard(getFrameMutex); |
| 368 | |
| 369 | // Assign timeline to effect |
| 370 | effect->ParentTimeline(this); |
| 371 | |
| 372 | // Add effect to list |
| 373 | effects.push_back(effect); |
| 374 | |
| 375 | // Sort effects |
| 376 | sort_effects(); |
| 377 | } |
| 378 | |
| 379 | // Remove an effect from the timeline |
| 380 | void Timeline::RemoveEffect(EffectBase* effect) |
nothing calls this directly
no test coverage detected