Files
itgmania212121/stepmania/src/FadingBanner.h
T
Chris Danford 54bedc3eba clean up RageDisplay methods, add ability to mask song banner
The masking uses the Z-buffer under the assumption that some cards don't have a stencil.  Should we be using the stencil instead?  It doesn't really matter because we never need both the Z buffer and stencil buffer simultaneously.
2003-05-15 06:09:19 +00:00

45 lines
1017 B
C++

#ifndef FADINGBANNER_H
#define FADINGBANNER_H
/*
-----------------------------------------------------------------------------
Class: FadingBanner
Desc: Fades between two banners.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Banner.h"
#include "ActorFrame.h"
class FadingBanner : public ActorFrame
{
public:
FadingBanner();
virtual bool Load( RageTextureID ID );
void SetCroppedSize( float fWidth, float fHeight );
void LoadFromSong( Song* pSong ); // NULL means no song
void LoadAllMusic();
void LoadFromGroup( CString sGroupName );
void LoadFromCourse( Course* pCourse );
void LoadRoulette();
void LoadRandom();
void LoadFallback();
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
protected:
void BeforeChange();
Banner m_Banner[2];
int m_iIndexFront;
int GetBackIndex() { return m_iIndexFront==0 ? 1 : 0; }
};
#endif