]> git.tdb.fi Git - libs/gl.git/blobdiff - source/buffer.h
BufferAlias is now obsolete
[libs/gl.git] / source / buffer.h
index 858f502d1c4a2e196b44f5d31da11681d94979a5..4f9f32943df58e420848832d2d298914c74676e4 100644 (file)
@@ -98,24 +98,6 @@ private:
 };
 
 
-/**
-An adaptor for Buffer to make it compatible with Bind.
-*/
-template<BufferType T>
-class BufferAlias
-{
-private:
-       const Buffer &buffer;
-
-public:
-       BufferAlias(const Buffer &b): buffer(b) { }
-
-       void bind() const { buffer.bind_to(T); }
-       static const Buffer *current() { return Buffer::current(T); }
-       static void unbind() { Buffer::unbind_from(T); }
-};
-
-
 /**
 A proxy for a subset of a buffer.  Can be bound for use with uniform blocks.
 */