X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fimage.h;h=8c5a9d5bc8ff40e8e6858ffca8e4dd27fcceaeda;hb=d2d5b4c4dedf90a42dd2baff8334318b1d000f64;hp=5d113ccf33c83cd900d77f400bdfad38a000babb;hpb=850fae783476edfdaf996a008c70c941afb39d62;p=libs%2Fgltk.git diff --git a/source/image.h b/source/image.h index 5d113cc..8c5a9d5 100644 --- a/source/image.h +++ b/source/image.h @@ -1,10 +1,3 @@ -/* $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_ @@ -24,13 +17,19 @@ private: bool keep_aspect; public: - Image(const Resources &, const GL::Texture2D * = 0); + Image(const GL::Texture2D * = 0); + + virtual const char *get_class() const { return "image"; } +private: + virtual void autosize_special(const Part &, Geometry &); + +public: 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 &); }; } // namespace GLtk