include/SDL_opengl.h
changeset 7207 7103daaf5414
parent 7206 b69dfd56e1b0
child 7213 53df899db00b
equal deleted inserted replaced
7206:b69dfd56e1b0 7207:7103daaf5414
    58 #include <GL/gl.h>              /* Header File For The OpenGL Library */
    58 #include <GL/gl.h>              /* Header File For The OpenGL Library */
    59 #endif
    59 #endif
    60 #ifndef NO_SDL_GLEXT
    60 #ifndef NO_SDL_GLEXT
    61 #undef __glext_h_
    61 #undef __glext_h_
    62 #endif
    62 #endif
    63 
       
    64 /* !!! FIXME: temporary solution, since we use this even if a system's glext.h doesn't have it */
       
    65 #ifndef GL_ARB_debug_output
       
    66 #define GL_ARB_debug_output 1
       
    67 #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
       
    68 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
       
    69 #define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
       
    70 #define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
       
    71 #define GL_DEBUG_SOURCE_API_ARB           0x8246
       
    72 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
       
    73 #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
       
    74 #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
       
    75 #define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
       
    76 #define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
       
    77 #define GL_DEBUG_TYPE_ERROR_ARB           0x824C
       
    78 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
       
    79 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
       
    80 #define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
       
    81 #define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
       
    82 #define GL_DEBUG_TYPE_OTHER_ARB           0x8251
       
    83 #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
       
    84 #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
       
    85 #define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
       
    86 #define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
       
    87 #define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
       
    88 #define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
       
    89 typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
       
    90 #ifdef GL_GLEXT_PROTOTYPES
       
    91 GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
       
    92 GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
       
    93 GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam);
       
    94 GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
       
    95 #endif /* GL_GLEXT_PROTOTYPES */
       
    96 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
       
    97 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
       
    98 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
       
    99 typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
       
   100 #endif
       
   101 
       
   102 
    63 
   103 /**
    64 /**
   104  *  \file SDL_opengl.h
    65  *  \file SDL_opengl.h
   105  *
    66  *
   106  *  This file is included because glext.h is not available on some systems.
    67  *  This file is included because glext.h is not available on some systems.