From 759612fd66034135c13134ffb8199514204b9684 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 16 Jan 2013 18:49:56 +0200 Subject: [PATCH] Make Texture2D::image(Graphics::Image) public --- source/texture2d.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.43.0