fold CroppedSprite functionality into Sprite
more work on Rave
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user