Jeck — Cache refresh functionality, forcing in situ reload of textures.

* Changing profiles will now reload graphics, in case the profile has a different theme/mode/whatever.
This commit is contained in:
wagic.jeck
2009-09-04 22:33:39 +00:00
parent 78b9d61baf
commit 62be1e1c72
3 changed files with 128 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ public:
bool ReleaseQuad(JQuad* quad); //We're done with this quad, so delete and stop tracking. True if existed.
protected:
JTexture * texture;
bool bVRAM;
vector<JQuad*> trackedQuads;
};
@@ -82,6 +83,8 @@ public:
void Release(JSample * sample);
void ClearMisses();
void ClearUnlocked();
void Refresh(); //Refreshes all files in cache, for when mode/profile changes.
unsigned int nowTime();