glprototypes: add some (un)map buffer variants for GL/GLES
authorMatthew Waters <matthew@centricular.com>
Tue, 27 Jan 2015 00:04:07 +0000 (11:04 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 27 Jan 2015 01:26:04 +0000 (12:26 +1100)
gst-libs/gst/gl/glprototypes/base.h

index ab25e7e7f5dcf396c7d0f5cf03acbdbdbd500deb..e81673851d5b9817c69783beefeb0dae47120268 100644 (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 ()