Public Member Functions

media::ImageLoader Class Reference
[Base Image Library]

anyone wanting to support loading an image type must provide this interface. More...

#include <image-base.h>

Inheritance diagram for media::ImageLoader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

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).

Definition at line 155 of file image-base.h.


Constructor & Destructor Documentation

media::ImageLoader::~ImageLoader ( void   )  throw () [virtual]

Definition at line 40 of file image-base.cpp.


The documentation for this class was generated from the following files: