// (c) Tuomas J. Lukka #ifndef VOB_UTIL_IMAGELOADER_HXX #define VOB_UTIL_IMAGELOADER_HXX #include #include #include namespace Vob { /** Interfaces for image loading. */ namespace ImageLoader { PREDBGVAR(dbg); // /** An image being loaded. // * For maximum flexibility, the class provides two methods, // * one of which may be called from any thread, and the another // * which is called from the (synchronous) GL thread and will execute // * without hanging to wait for e.g. network data. // */ // class ImageLoaderJob { // public: // virtual ~ImageLoader() {}; // /** Process a piece of the non-GL part of the image loading. // * @return True, if processNoGL needs to be called again before processGL. // */ // virtual bool processNoGL() = 0; // /** Process a piece of the non-GL part of the image loading. // * @return True, if processNoGL needs to be called again; false, if processing // * is finished. // */ // virtual bool processGL() = 0; // }; typedef GLMosaicText::Mosaic::Raster RGBARaster; /** Load a single file synchronously into an RGBA raster. * Bad entry point, will be changed. */ extern RGBARaster *loadImageRGBA(const char *filename); } } #endif