]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.h
Use set_manager instead of passing the manager to the constructor
[libs/gl.git] / source / core / texture.h
index 6073cdcb2fcb5e071145731e4c1c88abbf1d02b0..33e0769d65431ac8c6a25152b486ea589337fed4 100644 (file)
@@ -30,10 +30,10 @@ protected:
                unsigned levels;
 
        public:
-               Loader(Texture &);
-               Loader(Texture &, Collection &);
+               Loader(Texture &t): Loader(t, 0) { }
+               Loader(Texture &t, Collection &c): Loader(t, &c) { }
        private:
-               void init();
+               Loader(Texture &, Collection *);
 
                virtual void finish();
 
@@ -63,7 +63,7 @@ protected:
        bool use_srgb_format;
        bool auto_gen_mipmap;
 
-       Texture(unsigned, ResourceManager * = 0);
+       Texture(unsigned);
 
        void set_format(PixelFormat);