Go ahead and support primitive mirage loading so that the editor test tile

loader will work.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2131 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-01-14 00:23:19 +00:00
parent a90b9a5bd1
commit 5a51f58bdd
@@ -1,5 +1,5 @@
// //
// $Id: SimpleCachingImageProvider.java,v 1.1 2003/01/13 22:49:46 mdb Exp $ // $Id: SimpleCachingImageProvider.java,v 1.2 2003/01/14 00:23:19 mdb Exp $
package com.threerings.media.tile; package com.threerings.media.tile;
@@ -10,6 +10,7 @@ import java.io.IOException;
import com.samskivert.util.LRUHashMap; import com.samskivert.util.LRUHashMap;
import com.threerings.media.Log; import com.threerings.media.Log;
import com.threerings.media.image.BufferedMirage;
import com.threerings.media.image.Colorization; import com.threerings.media.image.Colorization;
import com.threerings.media.image.Mirage; import com.threerings.media.image.Mirage;
@@ -40,9 +41,11 @@ public abstract class SimpleCachingImageProvider implements ImageProvider
public Mirage getTileImage (String path, Rectangle bounds, public Mirage getTileImage (String path, Rectangle bounds,
Colorization[] zations) Colorization[] zations)
{ {
// since we're just doing batch processing, we don't prepare // mostly fake it
// images for the screen BufferedImage tsimg = getTileSetImage(path, zations);
throw new UnsupportedOperationException(); tsimg = tsimg.getSubimage(bounds.x, bounds.y,
bounds.width, bounds.height);
return new BufferedMirage(tsimg);
} }
/** /**