anyone wanting to support loading an image type must provide this interface. More...
|virtual||~ImageLoader (void) throw ()|
|virtual const char *||getLoaderName (void) const =0 throw ()|
|tell us the name of yourself |
|virtual bool||canLoadImage (nstream::Manager *mgr, const char *name) const =0|
|image loader should return true if this is an image this loader can load. |
|virtual void||load (nstream::Stream *stream, image_t &image) const =0|
|here the loader actually loads |
anyone wanting to support loading an image type must provide this interface.
Warning to implementers: keep your image loaders entirely stateless! ImageLoader objects can be called on any thread, so they should be threadsafe. In practice that is easy so long as the loader is stateless. (stateless means no static or class member variables--the only state is the image being loaded, or other state on the stack).
|media::ImageLoader::~ImageLoader||(||void||)|| throw ()