GLDEBUGMESSAGEINSERT(3G)
π GLDEBUGMESSAGEINSERT(3G) π β inject ur own debug tea β
Okay bestie, welcome to the GLDEBUGMESSAGEINSERT(3G) page. Itβs giving βI have something to say and Iβm putting it directly into the debug queue.β Periodt. π
πΈ NAME πΈ
glDebugMessageInsert β inject an application-supplied message into the debug message queue. Literally what it says, no cap. β¨
β¨ C SPECIFICATION β¨
The actual signature, bestie β copy it exactly:
void glDebugMessageInsert(GLenum source, GLenum type, GLuint id,
GLenum severity, GLsizei length,
const char *message);
π PARAMETERS π
sourceβ the source of the debug message to insert. Like, where this message is coming from. π«Άtypeβ the type of the debug message insert. The category/vibe of the message youβre inserting. πidβ the user-supplied identifier of the message to insert. You pick it, bestie.severityβ the severity of the debug messages to insert. How loud this message should be. π₯lengthβ the length of the string contained in the character array whose address is given bymessage. Yes, itβs the character count. πmessageβ the address of a character array containing the message to insert. The actual tea. β
π¦ DESCRIPTION π¦
glDebugMessageInsert inserts a user-supplied message into the debug output queue. Iconic behavior, honestly. π
source specifies the source that will be used to classify the message, and it must be GL_DEBUG_SOURCE_APPLICATION or GL_DEBUG_SOURCE_THIRD_PARTY. All other sources are reserved for use by the GL implementation. So donβt try it, bestie. π
type indicates the type of the message to be inserted and may be one of:
GL_DEBUG_TYPE_ERRORGL_DEBUG_TYPE_DEPRECATED_BEHAVIORGL_DEBUG_TYPE_UNDEFINED_BEHAVIORGL_DEBUG_TYPE_PORTABILITYGL_DEBUG_TYPE_PERFORMANCEGL_DEBUG_TYPE_MARKERGL_DEBUG_TYPE_PUSH_GROUPGL_DEBUG_TYPE_POP_GROUPGL_DEBUG_TYPE_OTHER
severity indicates the severity of the message and may be:
GL_DEBUG_SEVERITY_LOWGL_DEBUG_SEVERITY_MEDIUMGL_DEBUG_SEVERITY_HIGHGL_DEBUG_SEVERITY_NOTIFICATION
id is available for application defined use and may be any value. This value will be recorded and used to identify the message. So yes, you can absolutely pick your little ID bestie. π
length contains a count of the characters in the character array whose address is given in message. If length is negative then message is treated as a null-terminated string. The length of the message, whether specified explicitly or implicitly, must be less than or equal to the implementation defined constant GL_MAX_DEBUG_MESSAGE_LENGTH. Thatβs the limit, bestie β respect it. π
π§ NOTES π§
GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, and GL_DEBUG_SEVERITY_NOTIFICATION are available only if the GL version is 4.3 or higher. Iykyk. π
π ERRORS π
GL_INVALID_ENUMis generated if any ofsource,typeorseverityis not one of the accepted interface types. Not me getting an invalid enumβ¦ couldnβt be me. πGL_INVALID_VALUEis generated if the length of the message is greater than the value ofGL_MAX_DEBUG_MESSAGE_LENGTH. Too long, bestie. Way too long. π
π VERSION SUPPORT π
Function / Feature Name: glDebugMessageInsert.
Hereβs the full OpenGL version vibe check, with every version from the original table:
2.0β-2.1β-3.0β-3.1β-3.2β-3.3β-4.0β-4.1β-4.2β-4.3β β4.4β β4.5β β
π SEE ALSO π
Go read these too, bestie:
glDebugMessageControl()glDebugMessageCallback()glGetDebugMessageLog()
π COPYRIGHT π
Copyright Β© 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. http://opencontent.org/openpub/.
π COPYRIGHT (the short one) π
Copyright Β© 2013-2014 Khronos Group
Cute sign-off: source/version [FIXME: source], date 08/09/2021, manual GLDEBUGMESSAGEINSERT(3G). Thatβs the footer tea, and we are out. Byeee ππ«Άβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms