7 assert(state.win_ptr && state.win_ptr->window);
9 glfwMakeContextCurrent(state.win_ptr->window);
12 if(glewInit() != GLEW_OK) {
16 glEnable(GL_DEBUG_OUTPUT);
18 glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0,
nullptr, GL_TRUE);
19 glDebugMessageControl(GL_DONT_CARE, GL_DEBUG_TYPE_OTHER, GL_DEBUG_SEVERITY_LOW, 0,
nullptr, GL_FALSE);
#define assert(condition)
void create_opengl_context(sys::state &state)
void shutdown_opengl(sys::state &state)
void debug_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei, GLchar const *message, void const *)
void emit_error_message(std::string const &content, bool fatal)