8 #ifndef GlobeEngine_DebugLogger_h
9 #define GlobeEngine_DebugLogger_h
11 #include "OpenGL_Includes.h"
41 static void printDebugLogLine(
unsigned int source,
unsigned int type,
unsigned int id,
unsigned int severity,
const char* message);
45 GLenum severity, GLsizei length,
const GLchar* message,
const void* userParam);
47 void enableDebugMessage(std::string _source, std::string _type, std::string _severity, GLsizei _count,
const GLuint* _ids);
48 void disableDebugMessage(std::string _source, std::string _type, std::string _severity, GLsizei _count,
const GLuint* _ids);
50 void insertDebugMessage(std::string _source, std::string _type, std::string _severity, std::string _message, GLuint _id);
54 void callMessageInsert(GLenum _source, GLenum _type, GLenum _severity, GLuint _id, std::string _message);
55 void callDebugMessageControl(GLenum _source, GLenum _type, GLenum _severity, GLsizei _count,
const GLuint* _ids,
bool _in);
void enableSynchronousDebugOutput()
Definition: DebugLogger.cpp:168
void disableDebugOutput()
Definition: DebugLogger.cpp:163
void insertDebugMessage(std::string _source, std::string _type, std::string _severity, std::string _message, GLuint _id)
Definition: DebugLogger.cpp:145
void performTest()
Definition: DebugLogger.cpp:178
GLenum getSourceForString(std::string _source)
Definition: DebugLogger.cpp:105
GLenum getTypeForString(std::string _type)
Definition: DebugLogger.cpp:86
Definition: DebugLogger.h:22
DebugLogger()
Definition: DebugLogger.cpp:5
void enableDebugOutput()
Definition: DebugLogger.cpp:158
void clear()
Definition: DebugLogger.cpp:15
static void CALLBACK debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam)
Definition: DebugLogger.cpp:35
void create()
Definition: DebugLogger.cpp:20
GLenum getSeverityForString(std::string _severity)
Definition: DebugLogger.cpp:124
void disableSynchronousDebugOutput()
Definition: DebugLogger.cpp:173
Definition: DebugLogger.h:14
void disableDebugMessage(std::string _source, std::string _type, std::string _severity, GLsizei _count, const GLuint *_ids)
Definition: DebugLogger.cpp:141
void enableDebugMessage(std::string _source, std::string _type, std::string _severity, GLsizei _count, const GLuint *_ids)
Definition: DebugLogger.cpp:137
#define CALLBACK
Definition: DebugLogger.h:18
~DebugLogger()
Definition: DebugLogger.cpp:10
static void printDebugLogLine(unsigned int source, unsigned int type, unsigned int id, unsigned int severity, const char *message)
Definition: DebugLogger.cpp:41