| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include "Common/GL/GLExtensions/gl_common.h" |
| 7 |
|
| 8 |
typedef void(APIENTRYP GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, |
| 9 |
GLsizei length, const GLchar* message, |
| 10 |
const void* userParam); |
| 11 |
#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 |
| 12 |
#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 |
| 13 |
#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 |
| 14 |
#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 |
| 15 |
#define GL_DEBUG_SOURCE_API_ARB 0x8246 |
| 16 |
#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 |
| 17 |
#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 |
| 18 |
#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 |
| 19 |
#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A |
| 20 |
#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B |
| 21 |
#define GL_DEBUG_TYPE_ERROR_ARB 0x824C |
| 22 |
#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D |
| 23 |
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E |
| 24 |
#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F |
| 25 |
#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 |
| 26 |
#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 |
| 27 |
#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 |
| 28 |
#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 |
| 29 |
#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 |
| 30 |
#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 |
| 31 |
#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 |
| 32 |
#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 |
| 33 |
|
| 34 |
typedef void(APIENTRYP PFNDOLDEBUGMESSAGECONTROLARBPROC)(GLenum source, GLenum type, |
| 35 |
GLenum severity, GLsizei count, |
| 36 |
const GLuint* ids, GLboolean enabled); |
| 37 |
typedef void(APIENTRYP PFNDOLDEBUGMESSAGEINSERTARBPROC)(GLenum source, GLenum type, GLuint id, |
| 38 |
GLenum severity, GLsizei length, |
| 39 |
const GLchar* buf); |
| 40 |
typedef void(APIENTRYP PFNDOLDEBUGMESSAGECALLBACKARBPROC)(GLDEBUGPROCARB callback, |
| 41 |
const void* userParam); |
| 42 |
typedef GLuint(APIENTRYP PFNDOLGETDEBUGMESSAGELOGARBPROC)(GLuint count, GLsizei bufSize, |
| 43 |
GLenum* sources, GLenum* types, |
| 44 |
GLuint* ids, GLenum* severities, |
| 45 |
GLsizei* lengths, GLchar* messageLog); |
| 46 |
|
| 47 |
extern PFNDOLDEBUGMESSAGECALLBACKARBPROC dolDebugMessageCallbackARB; |
| 48 |
extern PFNDOLDEBUGMESSAGECONTROLARBPROC dolDebugMessageControlARB; |
| 49 |
extern PFNDOLDEBUGMESSAGEINSERTARBPROC dolDebugMessageInsertARB; |
| 50 |
extern PFNDOLGETDEBUGMESSAGELOGARBPROC dolGetDebugMessageLogARB; |
| 51 |
|
| 52 |
#define glDebugMessageCallbackARB dolDebugMessageCallbackARB |
| 53 |
#define glDebugMessageControlARB dolDebugMessageControlARB |
| 54 |
#define glDebugMessageInsertARB dolDebugMessageInsertARB |
| 55 |
#define glGetDebugMessageLogARB dolGetDebugMessageLogARB |