add RageTexturePreloader.

This obsoletes Cached and Permanent textures, implementing them more
simply: if you want to keep the texture loaded, just load it and keep the texture
around as long as you want it.  The old "texture policy" scheme of "keep the
texture around for the duration of the screen" was ambiguous--we can have any
number of screens loaded.
This commit is contained in:
Glenn Maynard
2005-06-30 22:04:10 +00:00
parent 738b938f5a
commit f90e4cdf42
4 changed files with 113 additions and 4 deletions
+2
View File
@@ -18,6 +18,7 @@ struct lua_State;
#include "Difficulty.h"
#include "Course.h"
#include "ThemeMetric.h"
#include "RageTexturePreloader.h"
class SongManager
{
@@ -128,6 +129,7 @@ protected:
CStringArray m_sCourseGroupNames;
CStringArray m_sCourseGroupBannerPaths; // each course group may have a banner associated with it
RageTexturePreloader m_TexturePreload;
ThemeMetric<int> NUM_SONG_GROUP_COLORS;
ThemeMetric1D<RageColor> SONG_GROUP_COLOR;