100aa3ace3
- All images are loaded through the image manager - Architected to allow the use of prepared or unprepared images (and volatile images when the day comes that they support alpha) - Tunable caches for images and tiles - Resource manager caches unpacked resources on the filesystem - Various and sundry other cleanups git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2116 542714f4-19e9-0310-aa3c-eee0fc999fb1
30 lines
871 B
Java
30 lines
871 B
Java
//
|
|
// $Id: ImageDataProvider.java,v 1.1 2003/01/13 22:49:46 mdb Exp $
|
|
|
|
package com.threerings.media.image;
|
|
|
|
import java.io.IOException;
|
|
import javax.imageio.stream.ImageInputStream;
|
|
|
|
/**
|
|
* Provides access to image data for the image with the specified
|
|
* path. Images loaded from different data providers (which are
|
|
* differentiated by reference equality) will be considered distinct
|
|
* images with respect to caching.
|
|
*/
|
|
public interface ImageDataProvider
|
|
{
|
|
/**
|
|
* Returns a string identifier for this image data provider which wil
|
|
* be used to differentiate it from other providers and thus should be
|
|
* unique.
|
|
*/
|
|
public String getIdent ();
|
|
|
|
/**
|
|
* Returns an input stream from which the image data for the specified
|
|
* image may be loaded.
|
|
*/
|
|
public ImageInputStream loadImageData (String path) throws IOException;
|
|
}
|