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

BannerCache.h

Go to the documentation of this file.
00001 /* BannerCache - Maintains a cache of reduced-quality banners. */ 00002 00003 #ifndef BANNER_CACHE_H 00004 #define BANNER_CACHE_H 00005 00006 #include "IniFile.h" 00007 00008 #include "RageTexture.h" 00009 00010 class LoadingWindow; 00011 00012 class BannerCache 00013 { 00014 IniFile BannerData; 00015 00016 static CString GetBannerCachePath( CString BannerPath ); 00017 void UnloadAllBanners(); 00018 void CacheBannerInternal( CString BannerPath ); 00019 00020 public: 00021 BannerCache(); 00022 ~BannerCache(); 00023 00024 RageTextureID LoadCachedBanner( CString BannerPath ); 00025 00026 void CacheBanner( CString BannerPath ); 00027 void UncacheBanner( CString BannerPath ); 00028 void LoadBanner( CString BannerPath ); 00029 void OutputStats() const; 00030 }; 00031 00032 extern BannerCache *BANNERCACHE; // global and accessable from anywhere in our program 00033 00034 #endif 00035 00036 /* 00037 * (c) 2003 Glenn Maynard 00038 * All rights reserved. 00039 * 00040 * Permission is hereby granted, free of charge, to any person obtaining a 00041 * copy of this software and associated documentation files (the 00042 * "Software"), to deal in the Software without restriction, including 00043 * without limitation the rights to use, copy, modify, merge, publish, 00044 * distribute, and/or sell copies of the Software, and to permit persons to 00045 * whom the Software is furnished to do so, provided that the above 00046 * copyright notice(s) and this permission notice appear in all copies of 00047 * the Software and that both the above copyright notice(s) and this 00048 * permission notice appear in supporting documentation. 00049 * 00050 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00051 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00052 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00053 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00054 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00055 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00056 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00057 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00058 * PERFORMANCE OF THIS SOFTWARE. 00059 */

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