]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bindable.h
Remove non-OO access to blending
[libs/gl.git] / source / bindable.h
index d85ec78daac037710390a7949c1deb164c3dbb51..000234515aeeea4a5b38effe0bf27173251b8896 100644 (file)
@@ -98,11 +98,21 @@ private:
        Base *binder;
 
 public:
+       template<typename T>
+       Bind(const T &o, bool r = false):
+               binder(r ? create(&o, T::current()) : create(&o))
+       { }
+
        template<typename T>
        Bind(const T *o, bool r = false):
                binder(r ? create(o, T::current()) : create(o))
        { }
 
+       template<typename T>
+       Bind(T *o, bool r = false):
+               binder(r ? create(o, T::current()) : create(o))
+       { }
+
 private:
        Bind(const Bind &);
        Bind &operator=(const Bind &);