Add FrameHolder struct and logic around finding totalFrames of movies.

This commit is contained in:
Brandon W
2024-07-20 11:51:18 -04:00
committed by teejusb
parent 75531a67a0
commit 23f7ebd476
7 changed files with 40 additions and 7 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ void Sprite::Update( float fDelta )
// If the texture is a movie, decode frames.
if(!bSkipThisMovieUpdate && m_DecodeMovie)
m_pTexture->DecodeSeconds( std::max(0.0f, fTimePassed) );
m_pTexture->UpdateMovie( std::max(0.0f, fTimePassed) );
// update scrolling
if( m_fTexCoordVelocityX != 0 || m_fTexCoordVelocityY != 0 )