Add two features our multi-locale yohoho is going to need:

- Ability to set a locale prefix in which to search for locale-specific images.
- Ability to clear the image cache (we want to do this when we switch locales, otherwise we end up with wrong-language images cached.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@83 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mike Thomas
2006-12-01 18:49:09 +00:00
parent 4c61406ea8
commit 5fda18ef31
2 changed files with 54 additions and 0 deletions
@@ -136,6 +136,16 @@ public class ImageManager
this(rmgr, new AWTImageCreator(context));
}
/**
* Clears all images out of the cache.
*/
public void clearCache ()
{
Log.info("Clearing image manager cache.");
_ccache.clear();
}
/**
* Creates a buffered image, optimized for display on our graphics
* device.