added a transition between course songs
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#include "stdafx.h"
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
File: TransitionFade.cpp
|
||||
Class: TransitionFade
|
||||
|
||||
Desc: Fades out or in.
|
||||
Desc: See header.
|
||||
|
||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
||||
Chris Danford
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@@ -20,6 +21,7 @@
|
||||
TransitionFade::TransitionFade()
|
||||
{
|
||||
m_rect.StretchTo( CRect(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) );
|
||||
SetDiffuseColor( D3DXCOLOR(0,0,0,1) ); // black
|
||||
}
|
||||
|
||||
TransitionFade::~TransitionFade()
|
||||
@@ -33,7 +35,7 @@ void TransitionFade::DrawPrimitives()
|
||||
if( fPercentageOpaque == 0 )
|
||||
return; // draw nothing
|
||||
|
||||
D3DXCOLOR colorTemp = m_Color * fPercentageOpaque;
|
||||
D3DXCOLOR colorTemp = m_colorDiffuse[0] * fPercentageOpaque;
|
||||
m_rect.SetDiffuseColor( colorTemp );
|
||||
m_rect.Draw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user