From: Mikko Rasa Date: Sat, 21 Dec 2013 09:59:28 +0000 (+0200) Subject: BufferAlias is now obsolete X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=b69e2eeea92eae2c37c054a2a8b36f55e0ca2690 BufferAlias is now obsolete --- diff --git a/source/buffer.h b/source/buffer.h index 858f502d..4f9f3294 100644 --- a/source/buffer.h +++ b/source/buffer.h @@ -98,24 +98,6 @@ private: }; -/** -An adaptor for Buffer to make it compatible with Bind. -*/ -template -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. */