-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GLTK_IMAGE_H_
#define MSP_GLTK_IMAGE_H_
public:
Image(const GL::Texture2D * = 0);
+ virtual const char *get_class() const { return "image"; }
+
+ virtual void autosize();
+
void set_image(const GL::Texture2D *);
void set_keep_aspect(bool);
+
private:
- virtual const char *get_class() const { return "image"; }
- virtual void render_special(const Part &) const;
+ virtual void rebuild_special(const Part &, CachedPart &);
};
} // namespace GLtk