From: Mikko Rasa Date: Wed, 16 Jan 2013 16:49:56 +0000 (+0200) Subject: Make Texture2D::image(Graphics::Image) public X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=759612fd66034135c13134ffb8199514204b9684;p=libs%2Fgl.git Make Texture2D::image(Graphics::Image) public --- diff --git a/source/texture2d.h b/source/texture2d.h index 994c4efd..485867dd 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -62,10 +62,11 @@ public: the image must be compatible with the defined storage. */ void load_image(const std::string &fn); -private: + /** Uploads an image to the texture. If storage has not been defined, it + will be set to match the image. Otherwise the image must be compatible with + the defined storage. */ void image(const Graphics::Image &); -public: unsigned get_width() const { return width; } unsigned get_height() const { return height; }