clean up RageDisplay methods, add ability to mask song banner

The masking uses the Z-buffer under the assumption that some cards don't have a stencil.  Should we be using the stencil instead?  It doesn't really matter because we never need both the Z buffer and stencil buffer simultaneously.
This commit is contained in:
Chris Danford
2003-05-15 06:09:19 +00:00
parent 2b1099666c
commit 54bedc3eba
27 changed files with 169 additions and 252 deletions
+5 -4
View File
@@ -16,6 +16,8 @@
FadingBanner::FadingBanner()
{
m_iIndexFront = 0;
for( int i=0; i<2; i++ )
this->AddChild( &m_Banner[i] );
}
void FadingBanner::SetCroppedSize( float fWidth, float fHeight )
@@ -26,14 +28,13 @@ void FadingBanner::SetCroppedSize( float fWidth, float fHeight )
void FadingBanner::Update( float fDeltaTime )
{
Actor::Update( fDeltaTime );
for( int i=0; i<2; i++ )
m_Banner[i].Update( fDeltaTime );
ActorFrame::Update( fDeltaTime );
}
void FadingBanner::DrawPrimitives()
{
Actor::DrawPrimitives();
// draw manually
// ActorFrame::DrawPrimitives();
m_Banner[GetBackIndex()].Draw();
m_Banner[m_iIndexFront].Draw();
}