TransitionFadeWipe is no longer used; remove
This commit is contained in:
@@ -56,7 +56,7 @@ FileTypes = IniFile.cpp IniFile.h MsdFile.cpp MsdFile.h
|
|||||||
StepMania = global.h ScreenDimensions.h StdString.h StepMania.cpp StepMania.h
|
StepMania = global.h ScreenDimensions.h StdString.h StepMania.cpp StepMania.h
|
||||||
|
|
||||||
Transitions = \
|
Transitions = \
|
||||||
Transition.cpp Transition.h TransitionFade.cpp TransitionFade.h TransitionFadeWipe.cpp TransitionFadeWipe.h \
|
Transition.cpp Transition.h TransitionFade.cpp TransitionFade.h \
|
||||||
TransitionOniFade.cpp TransitionOniFade.h \
|
TransitionOniFade.cpp TransitionOniFade.h \
|
||||||
TransitionStarWipe.cpp TransitionStarWipe.h TransitionBGAnimation.cpp TransitionBGAnimation.h
|
TransitionStarWipe.cpp TransitionStarWipe.h TransitionBGAnimation.cpp TransitionBGAnimation.h
|
||||||
|
|
||||||
|
|||||||
@@ -904,14 +904,6 @@ SOURCE=.\TransitionFade.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\TransitionFadeWipe.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\TransitionFadeWipe.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\TransitionOniFade.cpp
|
SOURCE=.\TransitionOniFade.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|||||||
@@ -971,12 +971,6 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\TransitionFade.h">
|
RelativePath=".\TransitionFade.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\TransitionFadeWipe.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\TransitionFadeWipe.h">
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="TransitionOniFade.cpp">
|
RelativePath="TransitionOniFade.cpp">
|
||||||
</File>
|
</File>
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
#include "global.h"
|
|
||||||
/*
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
File: TransitionStarWipe.cpp
|
|
||||||
|
|
||||||
Desc: Black bands (horizontal window blinds) gradually close.
|
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "RageUtil.h"
|
|
||||||
|
|
||||||
#include "TransitionFadeWipe.h"
|
|
||||||
#include "GameConstantsAndTypes.h"
|
|
||||||
#include "PrefsManager.h"
|
|
||||||
|
|
||||||
const float FADE_RECT_WIDTH = SCREEN_WIDTH/2;
|
|
||||||
|
|
||||||
|
|
||||||
TransitionFadeWipe::TransitionFadeWipe()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
TransitionFadeWipe::~TransitionFadeWipe()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void TransitionFadeWipe::DrawPrimitives()
|
|
||||||
{
|
|
||||||
if( m_TransitionState == opened )
|
|
||||||
return;
|
|
||||||
|
|
||||||
/////////////////////////
|
|
||||||
// draw rectangles that get progressively smaller at the edge of the wipe
|
|
||||||
/////////////////////////
|
|
||||||
bool bLeftEdgeIsDarker = m_TransitionState == opening_left || m_TransitionState == closing_right;
|
|
||||||
bool bFadeIsMovingLeft = m_TransitionState == opening_left || m_TransitionState == closing_left;
|
|
||||||
|
|
||||||
float fPercentComplete = m_fPercentThroughTransition;
|
|
||||||
float fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete*1.3f : fPercentComplete*1.3f;
|
|
||||||
|
|
||||||
float fFadeLeftEdgeX = fPercentAlongScreen * SCREEN_WIDTH - FADE_RECT_WIDTH/2;
|
|
||||||
float fFadeRightEdgeX = fPercentAlongScreen * SCREEN_WIDTH + FADE_RECT_WIDTH/2;
|
|
||||||
|
|
||||||
float fDarkEdgeX = bLeftEdgeIsDarker ? fFadeLeftEdgeX : fFadeRightEdgeX;
|
|
||||||
float fLightEdgeX = bLeftEdgeIsDarker ? fFadeRightEdgeX : fFadeLeftEdgeX;
|
|
||||||
|
|
||||||
float fDarkOutsideX = bLeftEdgeIsDarker ? fDarkEdgeX - SCREEN_WIDTH*2 : fDarkEdgeX + SCREEN_WIDTH*2;
|
|
||||||
|
|
||||||
|
|
||||||
m_rectBlack.SetDiffuse( RageColor(0,0,0,1) );
|
|
||||||
m_rectBlack.StretchTo( RectI((int)fDarkOutsideX, 0, (int)fDarkEdgeX, (int)SCREEN_HEIGHT) );
|
|
||||||
m_rectBlack.Draw();
|
|
||||||
|
|
||||||
m_rectGradient.SetDiffuseLeftEdge( RageColor(0,0,0,1) );
|
|
||||||
m_rectGradient.SetDiffuseRightEdge( RageColor(0,0,0,0) );
|
|
||||||
m_rectGradient.StretchTo( RectI((int)fDarkEdgeX, 0, (int)fLightEdgeX, (int)SCREEN_HEIGHT) );
|
|
||||||
m_rectGradient.Draw();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
/*
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
File: TransitionFadeWipe.cpp
|
|
||||||
|
|
||||||
Desc: Fades out or in.
|
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef TRANSITION_FADE_WIPE_H
|
|
||||||
#define TRANSITION_FADE_WIPE_H
|
|
||||||
|
|
||||||
|
|
||||||
#include "Transition.h"
|
|
||||||
#include "Quad.h"
|
|
||||||
|
|
||||||
|
|
||||||
class TransitionFadeWipe : public Transition
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
TransitionFadeWipe();
|
|
||||||
~TransitionFadeWipe();
|
|
||||||
|
|
||||||
virtual void DrawPrimitives();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
Quad m_rectBlack, m_rectGradient;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user