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

Method UpdateGrids

trinity/Tr2TextureAnimation.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void 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
235void Tr2TextureAnimation::RestartAnimation()
236{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
UpdateSubresourceMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected