32 return static_cast<GLenum
>(value);
37 inline const std::map<GLenum, const char*> enumStringValueMap = {
38 {GL_DEBUG_SOURCE_API,
"OpenGL API"},
39 {GL_DEBUG_SOURCE_APPLICATION,
"Application"},
40 {GL_DEBUG_SOURCE_OTHER,
"Other"},
41 {GL_DEBUG_SOURCE_SHADER_COMPILER,
"Shader Compiler"},
42 {GL_DEBUG_SOURCE_THIRD_PARTY,
"Third Party"},
43 {GL_DEBUG_SOURCE_WINDOW_SYSTEM,
"Window System"},
45 {GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR,
"Deprecated Behavior"},
46 {GL_DEBUG_TYPE_ERROR,
"Error"},
47 {GL_DEBUG_TYPE_MARKER,
"Marker"},
48 {GL_DEBUG_TYPE_OTHER,
"Other"},
49 {GL_DEBUG_TYPE_PERFORMANCE,
"Performance"},
50 {GL_DEBUG_TYPE_POP_GROUP,
"Pop Group"},
51 {GL_DEBUG_TYPE_PORTABILITY,
"Portability"},
52 {GL_DEBUG_TYPE_PUSH_GROUP,
"Push Group"},
53 {GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR,
"Undefined Behavior"},
55 {GL_DEBUG_SEVERITY_HIGH,
"High"},
56 {GL_DEBUG_SEVERITY_LOW,
"Low"},
57 {GL_DEBUG_SEVERITY_MEDIUM,
"Medium"},
58 {GL_DEBUG_SEVERITY_NOTIFICATION,
"Notification"}
GLenum getEnumValue(T value)