fold CroppedSprite functionality into Sprite

more work on Rave
This commit is contained in:
Chris Danford
2003-07-03 06:38:57 +00:00
parent 12d77daa2a
commit 9c9aef37c7
36 changed files with 450 additions and 433 deletions
+8 -2
View File
@@ -45,12 +45,12 @@ bool Banner::Load( RageTextureID ID )
m_bScrolling = false;
TEXTUREMAN->VolatileTexture( ID );
return CroppedSprite::Load( ID );
return Sprite::Load( ID );
};
void Banner::Update( float fDeltaTime )
{
CroppedSprite::Update( fDeltaTime );
Sprite::Update( fDeltaTime );
if( m_bScrolling )
{
@@ -129,3 +129,9 @@ void Banner::LoadRandom()
Load( THEME->GetPathToG("Banner random") );
m_bScrolling = true;
}
void Banner::ScaleToClipped( float fWidth, float fHeight )
{
m_fRememberedClipWidth = fWidth;
m_fRememberedClipHeight = fHeight;
}