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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user