glprototypes: add some (un)map buffer variants for GL/GLES

This commit is contained in:
Matthew Waters 2015-01-27 11:04:07 +11:00 committed by Tim-Philipp Müller
parent 2833e8c63a
commit 230d19e172

View file

@ -298,6 +298,14 @@ GST_GL_EXT_BEGIN (map_vbos,
GST_GL_EXT_FUNCTION (void *, MapBuffer,
(GLenum target,
GLenum access))
GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (unmap_buffer,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 | GST_GL_API_GLES2,
1, 5,
3, 0,
"ARB\0OES\0",
"vertex_buffer_object\0mapbuffer\0")
GST_GL_EXT_FUNCTION (GLboolean, UnmapBuffer,
(GLenum target))
GST_GL_EXT_END ()
@ -305,10 +313,12 @@ GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (gl3,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
GST_GL_API_GLES2,
3, 1,
3, 0,
3, 0,
"\0",
"\0")
GST_GL_EXT_FUNCTION (const GLubyte*, GetStringi,
(GLenum name, GLint index))
GST_GL_EXT_FUNCTION (void *, MapBufferRange,
(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access))
GST_GL_EXT_END ()