Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

FadingBanner.h

Go to the documentation of this file.
00001 /* FadingBanner Fades between two banners. */ 00002 00003 #ifndef FADING_BANNER_H 00004 #define FADING_BANNER_H 00005 00006 #include "Banner.h" 00007 #include "ActorFrame.h" 00008 #include "RageTimer.h" 00009 00010 class FadingBanner : public ActorFrame 00011 { 00012 public: 00013 FadingBanner(); 00014 00015 void ScaleToClipped( float fWidth, float fHeight ); 00016 00017 bool Load( RageTextureID ID ); 00018 void LoadFromSong( const Song* pSong ); // NULL means no song 00019 void LoadAllMusic(); 00020 void LoadSort(); 00021 void LoadMode(); 00022 void LoadFromGroup( CString sGroupName ); 00023 void LoadFromCourse( const Course* pCourse ); 00024 void LoadRoulette(); 00025 void LoadRandom(); 00026 void LoadFallback(); 00027 00028 bool LoadFromCachedBanner( const CString &path ); 00029 00030 void SetMovingFast( bool fast ) { m_bMovingFast=fast; } 00031 virtual void Update( float fDeltaTime ); 00032 virtual void DrawPrimitives(); 00033 00034 protected: 00035 void BeforeChange(); 00036 00037 Banner m_Banner[3]; 00038 int m_iIndexLatest; 00039 00040 bool m_bMovingFast; 00041 bool m_bSkipNextBannerUpdate; 00042 }; 00043 00044 #endif 00045 00046 /* 00047 * (c) 2001-2004 Chris Danford 00048 * All rights reserved. 00049 * 00050 * Permission is hereby granted, free of charge, to any person obtaining a 00051 * copy of this software and associated documentation files (the 00052 * "Software"), to deal in the Software without restriction, including 00053 * without limitation the rights to use, copy, modify, merge, publish, 00054 * distribute, and/or sell copies of the Software, and to permit persons to 00055 * whom the Software is furnished to do so, provided that the above 00056 * copyright notice(s) and this permission notice appear in all copies of 00057 * the Software and that both the above copyright notice(s) and this 00058 * permission notice appear in supporting documentation. 00059 * 00060 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00061 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00062 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00063 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00064 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00065 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00066 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00067 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00068 * PERFORMANCE OF THIS SOFTWARE. 00069 */

Generated on Thu Jan 27 20:57:20 2005 for StepMania by doxygen 1.3.7