Replaced most D3DX dependencies. Added Brendan's not-yet-functional networking code.

This commit is contained in:
Chris Danford
2002-10-28 05:30:45 +00:00
parent 5110da12d3
commit 73f7db6b15
99 changed files with 1203 additions and 718 deletions
+7 -6
View File
@@ -21,7 +21,7 @@
TransitionFade::TransitionFade()
{
m_rect.StretchTo( CRect(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) );
SetDiffuse( D3DXCOLOR(0,0,0,1) ); // black
SetDiffuse( RageColor(0,0,0,1) ); // black
}
TransitionFade::~TransitionFade()
@@ -35,17 +35,18 @@ void TransitionFade::DrawPrimitives()
if( fPercentageOpaque == 0 )
return; // draw nothing
D3DXCOLOR colorTemp = GetDiffuse() * fPercentageOpaque;
RageColor colorTemp = GetDiffuse();
colorTemp.a = fPercentageOpaque;
m_rect.SetDiffuse( colorTemp );
m_rect.Draw();
// SUPER HACK! For some reason, this does not draw in release mode. I've looked for
// hours and can't figure out why. It appears though if you draw it twice, so that's
// what we'll do for now. Aye...
#ifndef _DEBUG
m_rect.SetDiffuse( colorTemp );
m_rect.Draw();
#endif
//#ifndef _DEBUG
// m_rect.SetDiffuse( colorTemp );
// m_rect.Draw();
//#endif
}