1 #ifndef MSP_GLTK_IMAGE_H_
2 #define MSP_GLTK_IMAGE_H_
4 #include <msp/gl/texture2d.h>
11 A widget for displaying images.
13 class Image: public Widget
16 const GL::Texture2D *image;
20 Image(const GL::Texture2D * = 0);
22 virtual const char *get_class() const { return "image"; }
24 virtual void autosize();
26 void set_image(const GL::Texture2D *);
27 void set_keep_aspect(bool);
30 virtual void rebuild_special(const Part &, CachedPart &);