#define MSP_GLTK_IMAGE_H_
#include <msp/gl/texture2d.h>
+#include "mspgltk_api.h"
#include "widget.h"
namespace Msp {
/**
A widget for displaying images.
*/
-class Image: public Widget
+class MSPGLTK_API Image: public Widget
{
+public:
+ class Loader: public Msp::DataFile::DerivedObjectLoader<Image, Widget::Loader>
+ {
+ public:
+ Loader(Image &);
+ };
+
private:
const GL::Texture2D *image;
std::string icon_name;