- height times its depth. */
- void load_image(const std::string &fn, int dp = -1);
+ height times its depth.
+
+ Deprecated in favor of the base class version.*/
+ DEPRECATED void load_image(const std::string &fn, int dp = -1);
+
+ using Texture::load_image;
+
+ /** Uploads an image to the texture. If storage has not been defined, it
+ will be set to match the image. In this case the image will be treated as
+ a stack of square layers and its height must be divisible by its width.
+ Otherwise the image must be compatible with the defined storage.
+
+ If srgb is true and storage is determined by this call, then an sRGB pixel
+ format will be used. */
+ virtual void image(const Graphics::Image &, bool = false);