]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / core / texture.h
index 6073cdcb2fcb5e071145731e4c1c88abbf1d02b0..2f647b90cae721837f441a59c4c67e5c5f3f31fd 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();