fix masking

This commit is contained in:
Glenn Maynard
2003-05-29 01:30:41 +00:00
parent 4c4a6b9948
commit 7dc5cef9a1
+6 -7
View File
@@ -29,11 +29,16 @@
CourseContentsList::CourseContentsList()
{
m_iNumContents = 0;
m_quad.SetDiffuse( RageColor(0,0,0,0) ); // invisible, since we want to write only to the Zbuffer
m_quad.SetDiffuse( RageColor(0,0,0,1) );
m_quad.SetBlendMode( BLEND_NO_EFFECT ); // invisible, since we want to write only to the Zbuffer
m_fTimeUntilScroll = 0;
m_fItemAtTopOfList = 0;
m_quad.SetUseZBuffer( true );
for( int i = 0; i < MAX_TOTAL_CONTENTS; ++i )
m_CourseContentDisplays[i].SetUseZBuffer( true );
/* These are all the same; grab the dimensions. */
ContentsBarHeight = m_CourseContentDisplays[0].m_sprFrame.GetTexture()->GetSourceFrameHeight();
ContentsBarWidth = m_CourseContentDisplays[0].m_sprFrame.GetTexture()->GetSourceFrameWidth();
@@ -95,9 +100,6 @@ void CourseContentsList::Update( float fDeltaTime )
void CourseContentsList::DrawPrimitives()
{
// turn on Z buffer to clip items
DISPLAY->SetZBuffer( true );
// write to z buffer so that top and bottom are clipped
m_quad.SetZ( 1 );
@@ -126,9 +128,6 @@ void CourseContentsList::DrawPrimitives()
m_CourseContentDisplays[iItemToDraw].Draw();
iItemToDraw = (iItemToDraw+1) % m_iNumContents;
}
// turn off Z buffer
DISPLAY->SetZBuffer( false );
}
void CourseContentsList::TweenInAfterChangedCourse()