| 2250 | } |
| 2251 | |
| 2252 | void Tr2Sprite2dScene::RemoveFinishedCurveSets() |
| 2253 | { |
| 2254 | // Remember, m_curveSets is a BlueList, must use Remove to get ref-count right. |
| 2255 | for( ssize_t i = 0; i < m_curveSets.GetSize(); ) |
| 2256 | { |
| 2257 | TriCurveSet* cs = m_curveSets[i]; |
| 2258 | if( !cs->IsPlaying() ) |
| 2259 | { |
| 2260 | m_curveSets.Remove( i ); |
| 2261 | } |
| 2262 | else |
| 2263 | { |
| 2264 | ++i; |
| 2265 | } |
| 2266 | } |
| 2267 | } |
| 2268 | |
| 2269 | // Prepare required resources for rendering. If any of them are not ready |
| 2270 | // this function returns false, otherwise it returns true and rendering can |