diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 17:56:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 17:56:09 +0000 |
commit | a8f662081968ae484fb620ec480683106f42eecd (patch) | |
tree | 835c4c25742537c13d8e6611544962ca4d1445ca /lib/glArrays.h | |
parent | Set v330 core on world shaders (diff) | |
download | ilt-a8f662081968ae484fb620ec480683106f42eecd.tar.bz2 ilt-a8f662081968ae484fb620ec480683106f42eecd.tar.xz ilt-a8f662081968ae484fb620ec480683106f42eecd.zip |
Add frame and render buffers to glArrays
Diffstat (limited to 'lib/glArrays.h')
-rw-r--r-- | lib/glArrays.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/glArrays.h b/lib/glArrays.h index ed05eeb..42f1d0f 100644 --- a/lib/glArrays.h +++ b/lib/glArrays.h @@ -74,3 +74,7 @@ template<size_t N> using glBuffers = glArrays<N, &glGenBuffers, &glDeleteBuffers using glBuffer = glBuffers<1>; template<size_t N> using glTextures = glArrays<N, &glGenTextures, &glDeleteTextures>; using glTexture = glTextures<1>; +template<size_t N> using glFrameBuffers = glArrays<N, &glGenFramebuffers, &glDeleteFramebuffers>; +using glFrameBuffer = glFrameBuffers<1>; +template<size_t N> using glRenderBuffers = glArrays<N, &glGenRenderbuffers, &glDeleteRenderbuffers>; +using glRenderBuffer = glRenderBuffers<1>; |