This commit is contained in:
Glenn Maynard
2004-01-12 01:43:38 +00:00
parent 6ac866c0de
commit 35847c32c5
2 changed files with 7 additions and 21 deletions
+3 -15
View File
@@ -14,31 +14,19 @@
MeterDisplay::MeterDisplay()
{
this->AddChild( &m_sprStream );
}
void MeterDisplay::Load( CString sSteamPath, float fStreamWidth )
void MeterDisplay::Load( CString sStreamPath, float fStreamWidth )
{
m_fStreamWidth = fStreamWidth;
m_sprStream.Load( sSteamPath );
m_sprStream.Load( sStreamPath );
m_sprStream.SetZoomX( fStreamWidth / m_sprStream.GetUnzoomedWidth() );
SetPercent( 0.5f );
}
void MeterDisplay::Update( float fDelta )
{
m_sprStream.Update( fDelta );
Actor::Update( fDelta );
}
void MeterDisplay::DrawPrimitives()
{
m_sprStream.Draw();
}
void MeterDisplay::SetPercent( float fPercent )
{
ASSERT( fPercent >= 0 && fPercent <= 1 );