MCPcopy Create free account
hub / github.com/carbonengine/trinity / RemoveFinishedCurveSets

Method RemoveFinishedCurveSets

trinity/Sprite2d/Tr2Sprite2dScene.cpp:2252–2267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2250}
2251
2252void 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

Callers

nothing calls this directly

Calls 2

IsPlayingMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected