| 177 | } |
| 178 | |
| 179 | void PostEffectVis::onStartOfFrame() |
| 180 | { |
| 181 | if ( mWindows.empty() ) |
| 182 | return; |
| 183 | if ( !_getContentControl()->isAwake() ) |
| 184 | return; |
| 185 | |
| 186 | // Restore vis windows to a default state. |
| 187 | // This ensures to users that open PostEffects that are not |
| 188 | // actively being processed are obvious. |
| 189 | |
| 190 | VisVector::iterator itr = mWindows.begin(); |
| 191 | for ( ; itr != mWindows.end(); itr++ ) |
| 192 | { |
| 193 | for ( U32 i = 0; i < TexCount; i++ ) |
| 194 | { |
| 195 | if ( !itr->bmp[i] || itr->pfx->getRenderTime() == PFXTexGenOnDemand ) |
| 196 | continue; |
| 197 | |
| 198 | itr->bmp[i]->setBitmap( NULL ); |
| 199 | _setDefaultCaption( *itr, i ); |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | void PostEffectVis::onPFXProcessed( PostEffect *pfx ) |
| 205 | { |
no test coverage detected