add Actor::hidden flag (better than hiding by setting diffusealpha=0)

This commit is contained in:
Chris Danford
2003-10-22 10:18:46 +00:00
parent ca012307a5
commit 25a3a2e26a
3 changed files with 24 additions and 15 deletions
+4
View File
@@ -46,6 +46,7 @@ void Actor::Reset()
m_effectColor1 = RageColor(1,1,1,1);
m_effectColor2 = RageColor(1,1,1,1);
m_bHidden = false;
m_bShadow = false;
m_fShadowLength = 4;
m_bIsAnimating = true;
@@ -66,6 +67,9 @@ Actor::Actor()
void Actor::Draw()
{
if( m_bHidden )
return; // early abort
// call the most-derived versions
this->BeginDraw();
this->DrawPrimitives(); // call the most-derived version of DrawPrimitives();