X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimage.h;h=064a6c969beb63a97115bb349fa1e9ccde76cfdd;hb=060b85ffc3d92b94b444b29ee5b26a6e74636235;hp=efc814487f88c39f38e2cc209382b5d53db0a50e;hpb=2bdaf4955fdb94e73704adcdcf0adc2b353f0ff0;p=libs%2Fgltk.git diff --git a/source/image.h b/source/image.h index efc8144..064a6c9 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,11 +21,13 @@ public: virtual const char *get_class() const { return "image"; } + virtual void autosize(); + 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 &, CachedPart &); }; } // namespace GLtk