| 221 | } |
| 222 | |
| 223 | void Tr2TextureAnimation::UpdateGrids() |
| 224 | { |
| 225 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 226 | |
| 227 | for( size_t i = 0; i < m_grids.size(); ++i ) |
| 228 | { |
| 229 | CCP_STATS_ZONE( "UpdateSubresource" ); |
| 230 | auto& bitmap = m_asyncState->decoders[i].GetFrameBitmap(); |
| 231 | m_grids[i].frame.UpdateSubresource( Tr2TextureSubresource( 0 ), bitmap.GetRawData(), bitmap.GetPitch(), bitmap.GetPitch() * bitmap.GetHeight(), renderContext ); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | void Tr2TextureAnimation::RestartAnimation() |
| 236 | { |
nothing calls this directly
no test coverage detected