From 20646758939562c0fbad4d52774efcfacf7e22fc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 22 Dec 2021 14:10:34 +0000 Subject: RAII for glVertex and glBuffer --- lib/glBuffers.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/glBuffers.cpp (limited to 'lib/glBuffers.cpp') diff --git a/lib/glBuffers.cpp b/lib/glBuffers.cpp new file mode 100644 index 0000000..cb5ab2a --- /dev/null +++ b/lib/glBuffers.cpp @@ -0,0 +1,13 @@ +#include "glBuffers.h" + +void +glBuffersBase::gen(GLsizei n, GLuint * ids) +{ + glGenBuffers(n, ids); +} + +void +glBuffersBase::del(GLsizei n, const GLuint * ids) +{ + glDeleteBuffers(n, ids); +} -- cgit v1.2.3