remove TransitionRectWipe; unused
This commit is contained in:
@@ -57,7 +57,7 @@ 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 TransitionFadeWipe.cpp TransitionFadeWipe.h \
|
||||||
TransitionOniFade.cpp TransitionOniFade.h TransitionRectWipe.cpp TransitionRectWipe.h \
|
TransitionOniFade.cpp TransitionOniFade.h \
|
||||||
TransitionStarWipe.cpp TransitionStarWipe.h TransitionBGAnimation.cpp TransitionBGAnimation.h
|
TransitionStarWipe.cpp TransitionStarWipe.h TransitionBGAnimation.cpp TransitionBGAnimation.h
|
||||||
|
|
||||||
Actors = \
|
Actors = \
|
||||||
|
|||||||
@@ -920,14 +920,6 @@ SOURCE=.\TransitionOniFade.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\TransitionRectWipe.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\TransitionRectWipe.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\TransitionStarWipe.cpp
|
SOURCE=.\TransitionStarWipe.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|||||||
@@ -983,12 +983,6 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
|
|||||||
<File
|
<File
|
||||||
RelativePath="TransitionOniFade.h">
|
RelativePath="TransitionOniFade.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\TransitionRectWipe.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\TransitionRectWipe.h">
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\TransitionStarWipe.cpp">
|
RelativePath=".\TransitionStarWipe.cpp">
|
||||||
</File>
|
</File>
|
||||||
|
|||||||
@@ -1,86 +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 "TransitionRectWipe.h"
|
|
||||||
#include "GameConstantsAndTypes.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define RECTANGLE_WIDTH 20
|
|
||||||
#define NUM_RECTANGLES (SCREEN_WIDTH/RECTANGLE_WIDTH)
|
|
||||||
#define FADE_RECTS_WIDE (NUM_RECTANGLES/4) // number of rects from fade start to fade end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TransitionRectWipe::TransitionRectWipe()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
TransitionRectWipe::~TransitionRectWipe()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void TransitionRectWipe::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;
|
|
||||||
|
|
||||||
double fPercentComplete = m_fPercentThroughTransition;
|
|
||||||
double fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete : fPercentComplete;
|
|
||||||
|
|
||||||
int iFadeLeftEdge = (int)
|
|
||||||
(-FADE_RECTS_WIDE + (NUM_RECTANGLES + FADE_RECTS_WIDE) * fPercentAlongScreen);
|
|
||||||
int iFadeRightEdge = (int)
|
|
||||||
(0 + (NUM_RECTANGLES + FADE_RECTS_WIDE) * fPercentAlongScreen);
|
|
||||||
|
|
||||||
// draw all rectangles
|
|
||||||
for( int i=0; i<NUM_RECTANGLES; i++ )
|
|
||||||
{
|
|
||||||
// int iRectX = (int)(RECTANGLE_WIDTH * (i+0.5));
|
|
||||||
int iRectWidth;
|
|
||||||
|
|
||||||
if( i < iFadeLeftEdge )
|
|
||||||
iRectWidth = bLeftEdgeIsDarker ? RECTANGLE_WIDTH : 0;
|
|
||||||
//iRectWidth = 0;
|
|
||||||
else if( i > iFadeRightEdge )
|
|
||||||
iRectWidth = bLeftEdgeIsDarker ? 0 : RECTANGLE_WIDTH;
|
|
||||||
//iRectWidth = 0;
|
|
||||||
else // this is a fading rectangle
|
|
||||||
{
|
|
||||||
int iRectsFromLeftFadeEdge = i - iFadeLeftEdge;
|
|
||||||
double fPercentAlongFade = iRectsFromLeftFadeEdge / (double)FADE_RECTS_WIDE;
|
|
||||||
double fPercentDarkness = bLeftEdgeIsDarker ? 1-fPercentAlongFade : fPercentAlongFade;
|
|
||||||
iRectWidth = (int)(RECTANGLE_WIDTH * fPercentDarkness);
|
|
||||||
|
|
||||||
}
|
|
||||||
//iRectWidth = RECTANGLE_WIDTH;
|
|
||||||
|
|
||||||
if( iRectWidth > 0 )
|
|
||||||
//if( i == iFadeLeftEdge || i == iFadeRightEdge )
|
|
||||||
{ // draw the rectangle
|
|
||||||
/* RECT rect;
|
|
||||||
SetRect( &rect, iRectX-iRectWidth/2, 0,
|
|
||||||
iRectX+iRectWidth/2, SCREEN_HEIGHT );
|
|
||||||
DISPLAY->DrawRect( &rect, D3DCOLOR_ARGB(255,0,0,0) );
|
|
||||||
*/ }
|
|
||||||
} // end foreach rect
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
/*
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
File: TransitionStarWipe.cpp
|
|
||||||
|
|
||||||
Desc: Black bands (horizontal window blinds) gradually close.
|
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _TransitionRectWipe_H_
|
|
||||||
#define _TransitionRectWipe_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include "Transition.h"
|
|
||||||
|
|
||||||
|
|
||||||
class TransitionRectWipe : public Transition
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
TransitionRectWipe();
|
|
||||||
~TransitionRectWipe();
|
|
||||||
|
|
||||||
virtual void DrawPrimitives();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user