]> git.tdb.fi Git - libs/gl.git/blobdiff - source/misc.h
Add object-oriented interfaces for the various tests and blending
[libs/gl.git] / source / misc.h
index 11cb3a60fdc24f9d94e713f89f17cdd9bd351ca6..b8540bd61e7ec1fef504ec9c6c94dbdb6b2c164b 100644 (file)
@@ -23,31 +23,6 @@ void get(GLenum, int &);
 void get(GLenum, int *);
 int get_i(GLenum);
 
-class Bind
-{
-private:
-       struct Base
-       {
-               virtual ~Base() { }
-       };
-
-       template<typename T>
-       struct Binder: Base
-       {
-               const T &obj;
-
-               Binder(const T &o): obj(o) { obj.bind(); }
-               ~Binder() { obj.unbind(); }
-       };
-
-       Base *binder;
-
-public:
-       template<typename T>
-       Bind(const T &o): binder(new Binder<T>(o)) { }
-       ~Bind() { delete binder; }
-};
-
 } // namespace GL
 } // namespace Msp