3 This file is part of libmspgltk
4 Copyright © 2010-2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_IMAGE_H_
9 #define MSP_GLTK_IMAGE_H_
11 #include <msp/gl/texture2d.h>
18 A widget for displaying images.
20 class Image: public Widget
23 const GL::Texture2D *image;
27 Image(const GL::Texture2D * = 0);
29 virtual const char *get_class() const { return "image"; }
31 virtual void autosize();
33 void set_image(const GL::Texture2D *);
34 void set_keep_aspect(bool);
37 virtual void render_special(const Part &) const;