diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-22 14:10:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-22 14:10:34 +0000 |
commit | 20646758939562c0fbad4d52774efcfacf7e22fc (patch) | |
tree | 9bd582b749640206a5e38389117d6c931dcf1f5f /lib/glBuffers.cpp | |
parent | Initial commit with some basic UI (diff) | |
download | ilt-20646758939562c0fbad4d52774efcfacf7e22fc.tar.bz2 ilt-20646758939562c0fbad4d52774efcfacf7e22fc.tar.xz ilt-20646758939562c0fbad4d52774efcfacf7e22fc.zip |
RAII for glVertex and glBuffer
Diffstat (limited to 'lib/glBuffers.cpp')
-rw-r--r-- | lib/glBuffers.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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); +} |