X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimage.h;h=8c5a9d5bc8ff40e8e6858ffca8e4dd27fcceaeda;hb=754751fd474c6eac073fa7e89a18142fc89cb4fb;hp=afc4826e28c24f46e324ddcd30f994b1f10588d0;hpb=43ac7c4514658754d09552463425bcd344fb9ded;p=libs%2Fgltk.git diff --git a/source/image.h b/source/image.h index afc4826..8c5a9d5 100644 --- a/source/image.h +++ b/source/image.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2010-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_IMAGE_H_ #define MSP_GLTK_IMAGE_H_ @@ -28,13 +21,15 @@ public: virtual const char *get_class() const { return "image"; } - virtual void autosize(); +private: + virtual void autosize_special(const Part &, Geometry &); +public: void set_image(const GL::Texture2D *); void set_keep_aspect(bool); private: - virtual void render_special(const Part &) const; + virtual void rebuild_special(const Part &); }; } // namespace GLtk