| 164 | } |
| 165 | |
| 166 | void StreamerGroup::AddStreamer(int tag, const Vector3& pos, const Vector3& dir, short orient, const Color& colorStart, const Color& colorEnd, |
| 167 | float width, float life, float vel, float expRate, short rot, |
| 168 | StreamerFeatherMode featherMode, BlendMode blendMode) |
| 169 | { |
| 170 | TENAssert(_pools.size() <= POOL_COUNT_MAX, "Streamer pool count overflow."); |
| 171 | |
| 172 | // Return early if pool map is full and element with tag key doesn't already exist. |
| 173 | if (_pools.size() == POOL_COUNT_MAX && !_pools.count(tag)) |
| 174 | return; |
| 175 | |
| 176 | // Get and extend streamer iteration. |
| 177 | auto& streamer = GetStreamerIteration(tag, featherMode, blendMode); |
| 178 | streamer.Extend(pos, dir, orient, colorStart, colorEnd, width, life, vel, expRate, rot, (unsigned int)streamer.GetSegments().size()); |
| 179 | } |
| 180 | |
| 181 | void StreamerGroup::Update() |
| 182 | { |