1 #ifndef MSP_GRAPHICS_IMAGELOADER_H_
2 #define MSP_GRAPHICS_IMAGELOADER_H_
9 class unsupported_image_format: public std::runtime_error
12 unsupported_image_format(const std::string &w): std::runtime_error(w) { }
13 virtual ~unsupported_image_format() throw() { }
16 class bad_image_data: public std::runtime_error
19 bad_image_data(const std::string &w): std::runtime_error(w) { }
20 virtual ~bad_image_data() throw() { }
32 virtual ~ImageLoader();
34 static ImageLoader *open_file(const std::string &);
35 static ImageLoader *open_io(IO::Base &);
37 virtual void load(Image::Data &) = 0;
40 } // namespace Graphics