summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:56:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:56:09 +0000
commita8f662081968ae484fb620ec480683106f42eecd (patch)
tree835c4c25742537c13d8e6611544962ca4d1445ca /lib
parentSet v330 core on world shaders (diff)
downloadilt-a8f662081968ae484fb620ec480683106f42eecd.tar.bz2
ilt-a8f662081968ae484fb620ec480683106f42eecd.tar.xz
ilt-a8f662081968ae484fb620ec480683106f42eecd.zip
Add frame and render buffers to glArrays
Diffstat (limited to 'lib')
-rw-r--r--lib/glArrays.h4
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>;