mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gl: add prototype definition for KHR_debug
This commit is contained in:
parent
95a4585d4c
commit
14bd147a2d
1 changed files with 90 additions and 0 deletions
90
gst-libs/gst/gl/glprototypes/debug.h
Normal file
90
gst-libs/gst/gl/glprototypes/debug.h
Normal file
|
@ -0,0 +1,90 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2014 Matthew Waters <ystreet00@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
GST_GL_EXT_BEGIN (debug,
|
||||
GST_GL_API_OPENGL3,
|
||||
4, 3,
|
||||
255, 255,
|
||||
"KHR:\0ARB\0",
|
||||
"debug\0debug_output\0")
|
||||
GST_GL_EXT_FUNCTION (void, DebugMessageControl,
|
||||
(GLenum source,
|
||||
GLenum type,
|
||||
GLenum severity,
|
||||
GLsizei count,
|
||||
const GLuint* ids,
|
||||
gboolean enabled))
|
||||
GST_GL_EXT_FUNCTION (void, DebugMessageInsert,
|
||||
(GLenum source,
|
||||
GLenum type,
|
||||
GLenum severity,
|
||||
GLsizei length,
|
||||
const gchar *message))
|
||||
GST_GL_EXT_FUNCTION (void, DebugMessageCallback,
|
||||
(GST_GL_DEBUG_PROC callback,
|
||||
gpointer user_data))
|
||||
GST_GL_EXT_FUNCTION (GLuint, GetDebugMessageLog,
|
||||
(GLuint count,
|
||||
GLsizei bufSize,
|
||||
GLenum* sources,
|
||||
GLenum* types,
|
||||
GLuint* ids,
|
||||
GLenum* severities,
|
||||
GLsizei* lengths,
|
||||
gchar* messageLog))
|
||||
GST_GL_EXT_FUNCTION (void, GetPointerv,
|
||||
(GLenum pname,
|
||||
gpointer * params))
|
||||
GST_GL_EXT_END ()
|
||||
|
||||
GST_GL_EXT_BEGIN (khr_debug,
|
||||
GST_GL_API_OPENGL3,
|
||||
4, 3,
|
||||
255, 255,
|
||||
"KHR\0",
|
||||
"debug\0")
|
||||
GST_GL_EXT_FUNCTION (void, PushDebugGroup,
|
||||
(GLenum source,
|
||||
GLuint id,
|
||||
GLsizei length,
|
||||
const gchar * message))
|
||||
GST_GL_EXT_FUNCTION (void, PopDebugGroup, (void))
|
||||
GST_GL_EXT_FUNCTION (void, ObjectLabel,
|
||||
(GLenum identifier,
|
||||
GLuint name,
|
||||
GLsizei length,
|
||||
const gchar *label))
|
||||
GST_GL_EXT_FUNCTION (void, GetObjectLabel,
|
||||
(GLenum identifier,
|
||||
GLuint name,
|
||||
GLsizei bufSize,
|
||||
GLsizei *length,
|
||||
gchar *label))
|
||||
GST_GL_EXT_FUNCTION (void, ObjectPtrLabel,
|
||||
(gpointer ptr,
|
||||
GLsizei length,
|
||||
const gchar *label))
|
||||
GST_GL_EXT_FUNCTION (void, GetObjectPtrLabel,
|
||||
(gpointer ptr,
|
||||
GLsizei bufSize,
|
||||
GLsizei *length,
|
||||
gchar *label))
|
||||
GST_GL_EXT_END ()
|
||||
|
Loading…
Reference in a new issue