]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Refactor texture external image loading into a helper function
[libs/gl.git] / source / texture.h
index 30c6496a5658525e00a6ac59374996c25f08d7e3..6ee0b8a107754e83c7bf2d49b4fe6f68f2e11db4 100644 (file)
@@ -39,7 +39,10 @@ protected:
                void init();
 
                unsigned get_levels() const;
+       protected:
+               void load_external_image(Graphics::Image &, const std::string &);
 
+       private:
                void external_image(const std::string &);
                void filter(TextureFilter);
                void generate_mipmap(bool);