Transition::EarlyAbortDraw

This commit is contained in:
Glenn Maynard
2004-02-16 07:23:28 +00:00
parent 6a46606df0
commit 731359fb0a
2 changed files with 6 additions and 10 deletions
+5 -10
View File
@@ -81,18 +81,13 @@ void Transition::Update( float fDeltaTime )
}
}
bool Transition::EarlyAbortDraw()
{
return m_State != transitioning;
}
void Transition::DrawPrimitives()
{
// Unless we're transitioning, don't draw because we'll waste resources drawing things
// that aren't visible. -Chris
switch( m_State )
{
case waiting:
return;
case finished:
return;
}
m_BGAnimation.Draw();
}
+1
View File
@@ -28,6 +28,7 @@ public:
virtual void DrawPrimitives();
virtual void StartTransitioning( ScreenMessage send_when_done = SM_None );
virtual bool EarlyAbortDraw();
bool IsTransitioning() const { return m_State == transitioning; };
bool IsFinished() const { return m_State == finished; };