Revamped image loading such that the ResourceManager handles loading images
given a resource path so that it can be smart about loading from files versus streams depending on what works based based on where the resources are coming from. Also moved FastImageIO into com.threerings.resource to avoid a dependence on com.threerings.media in resource. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@310 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -41,7 +41,6 @@ import com.threerings.resource.ResourceManager;
|
||||
|
||||
import com.threerings.media.image.BufferedMirage;
|
||||
import com.threerings.media.image.Colorization;
|
||||
import com.threerings.media.image.FastImageIO;
|
||||
import com.threerings.media.image.ImageDataProvider;
|
||||
import com.threerings.media.image.ImageManager;
|
||||
import com.threerings.media.image.ImageUtil;
|
||||
@@ -277,7 +276,7 @@ public class BundledComponentRepository
|
||||
// from interface ImageDataProvider
|
||||
public BufferedImage loadImage (String path) throws IOException
|
||||
{
|
||||
return FastImageIO.read(_bundle.getResourceFile(path));
|
||||
return _bundle.getImageResource(path);
|
||||
}
|
||||
|
||||
// from interface FrameProvider
|
||||
|
||||
Reference in New Issue
Block a user