]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bindable.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / bindable.h
index d85ec78daac037710390a7949c1deb164c3dbb51..8823de5c9773209a1642f5b763887e65ca7ea5d6 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_BINDABLE_H_
 #define MSP_GL_BINDABLE_H_
 
@@ -98,11 +91,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 &);