X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.h;h=485867dd14f48e3a7dce09b7a4d9600856f152a9;hb=5ba1446b314ddc914693cb9cbb9a7b54a4d30a45;hp=994c4efd7224c43605ec0f6097483124e809db35;hpb=afd625b06702e7a25e0730601f03955832b64e65;p=libs%2Fgl.git 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; }