From b69e2eeea92eae2c37c054a2a8b36f55e0ca2690 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 21 Dec 2013 11:59:28 +0200 Subject: [PATCH] BufferAlias is now obsolete --- source/buffer.h | 18 ------------------ 1 file changed, 18 deletions(-) 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. */ -- 2.45.2