'\" t .\" Title: glDebugMessageControl .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLDEBUGMESSAGECONTRO" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glDebugMessageControl \- control the reporting of debug messages in a debug context .SH "C SPECIFICATION" .HP \w'void\ glDebugMessageControl('u .BI "void glDebugMessageControl(GLenum\ " "source" ", GLenum\ " "type" ", GLenum\ " "severity" ", GLsizei\ " "count" ", const\ GLuint\ *" "ids" ", GLboolean\ " "enabled" ");" .SH "PARAMETERS" .PP \fIsource\fR .RS 4 The source of debug messages to enable or disable\&. .RE .PP \fItype\fR .RS 4 The type of debug messages to enable or disable\&. .RE .PP \fIseverity\fR .RS 4 The severity of debug messages to enable or disable\&. .RE .PP \fIcount\fR .RS 4 The length of the array \fIids\fR\&. .RE .PP \fIids\fR .RS 4 The address of an array of unsigned integers contianing the ids of the messages to enable or disable\&. .RE .PP \fIenabled\fR .RS 4 A Boolean flag determining whether the selected messages should be enabled or disabled\&. .RE .SH "DESCRIPTION" .PP \fBglDebugMessageControl\fR controls the reporting of debug messages generated by a debug context\&. The parameters \fIsource\fR, \fItype\fR and \fIseverity\fR form a filter to select messages from the pool of potential messages generated by the GL\&. .PP \fIsource\fR may be \fBGL_DEBUG_SOURCE_API\fR, \fBGL_DEBUG_SOURCE_WINDOW_SYSTEM_\fR, \fBGL_DEBUG_SOURCE_SHADER_COMPILER\fR, \fBGL_DEBUG_SOURCE_THIRD_PARTY\fR, \fBGL_DEBUG_SOURCE_APPLICATION\fR, \fBGL_DEBUG_SOURCE_OTHER\fR to select messages generated by usage of the GL API, the window system, the shader compiler, third party tools or libraries, explicitly by the application or by some other source, respectively\&. It may also take the value \fBGL_DONT_CARE\fR\&. If \fIsource\fR is not \fBGL_DONT_CARE\fR then only messages whose source matches \fIsource\fR will be referenced\&. .PP \fItype\fR may be one of \fBGL_DEBUG_TYPE_ERROR\fR, \fBGL_DEBUG_TYPE_DEPRECATED_BEHAVIOR\fR, \fBGL_DEBUG_TYPE_UNDEFINED_BEHAVIOR\fR, \fBGL_DEBUG_TYPE_PORTABILITY\fR, \fBGL_DEBUG_TYPE_PERFORMANCE\fR, \fBGL_DEBUG_TYPE_MARKER\fR, \fBGL_DEBUG_TYPE_PUSH_GROUP\fR, \fBGL_DEBUG_TYPE_POP_GROUP\fR, or \fBGL_DEBUG_TYPE_OTHER\fR to indicate the type of messages describing GL errors, attempted use of deprecated features, triggering of undefined behavior, portability issues, performance notifications, markers, group push and pop events, and other types of messages, respectively\&. It may also take the value \fBGL_DONT_CARE\fR\&. If \fItype\fR is not \fBGL_DONT_CARE\fR then only messages whose type matches \fItype\fR will be referenced\&. .PP \fIseverity\fR may be one of \fBGL_DEBUG_SEVERITY_LOW\fR, \fBGL_DEBUG_SEVERITY_MEDIUM\fR, or \fBGL_DEBUG_SEVERITY_HIGH\fR to select messages of low, medium or high severity messages or to \fBGL_DEBUG_SEVERITY_NOTIFICATION\fR for notifications\&. It may also take the value \fBGL_DONT_CARE\fR\&. If \fIseverity\fR is not \fBGL_DONT_CARE\fR then only messages whose severity matches \fIseverity\fR will be referenced\&. .PP \fIids\fR contains a list of \fIcount\fR message identifiers to select specific messages from the pool of available messages\&. If \fIcount\fR is zero then the value of \fIids\fR is ignored\&. Otherwise, only messages appearing in this list are selected\&. In this case, \fIsource\fR and \fItype\fR may not be \fBGL_DONT_CARE\fR and \fIseverity\fR must be \fBGL_DONT_CARE\fR\&. .PP If \fIenabled\fR is \fBGL_TRUE\fR then messages that match the filter formed by \fIsource\fR, \fItype\fR, \fIseverity\fR and \fIids\fR are enabled\&. Otherwise, those messages are disabled\&. .SH "NOTES" .PP Although debug messages may be enabled in a non\-debug context, the quantity and detail of such messages may be substantially inferior to those in a debug context\&. In particular, a valid implementation of the debug message queue in a non\-debug context may produce no messages at all\&. .PP \fBGL_DEBUG_TYPE_MARKER\fR, \fBGL_DEBUG_TYPE_PUSH_GROUP\fR, \fBGL_DEBUG_TYPE_POP_GROUP\fR, and \fBGL_DEBUG_SEVERITY_NOTIFICATION\fR are available only if the GL version is 4\&.3 or higher\&. .SH "ERRORS" .PP \fBGL_INVALID_VALUE\fR is generated if \fIcount\fR is negative\&. .PP \fBGL_INVALID_ENUM\fR is generated if any of \fIsource\fR, \fItype\fR or \fIseverity\fR is not one of the accepted interface types\&. .PP \fBGL_INVALID_OPERATION\fR is generated if \fIcount\fR is non\-zero and either \fIsource\fR or \fItype\fR is \fBGL_DONT_CARE\fR or if \fIseverity\fR is not \fBGL_DONT_CARE\fR\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Version\fR T} T{ \fBFunction / Feature Name\fR T}:T{ \fB2\&.0\fR T}:T{ \fB2\&.1\fR T}:T{ \fB3\&.0\fR T}:T{ \fB3\&.1\fR T}:T{ \fB3\&.2\fR T}:T{ \fB3\&.3\fR T}:T{ \fB4\&.0\fR T}:T{ \fB4\&.1\fR T}:T{ \fB4\&.2\fR T}:T{ \fB4\&.3\fR T}:T{ \fB4\&.4\fR T}:T{ \fB4\&.5\fR T} .T& l c c c c c c c c c c c c. T{ \fBglDebugMessageControl\fR T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBglDebugMessageInsert\fR(), \fBglDebugMessageCallback\fR(), \fBglGetDebugMessageLog\fR()\&. .SH "COPYRIGHT" .PP Copyright \(co 2013\-2014 Khronos Group\&. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1\&.0, 8 June 1999\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2013-2014 Khronos Group .br