static int find_extensionsGL(void) { if (!get_exts()) { return 0; } GLAD_GL_ARB_framebuffer_object = has_ext("GL_ARB_framebuffer_object"); GLAD_GL_EXT_packed_depth_stencil = has_ext("GL_EXT_packed_depth_stencil"); GLAD_GL_EXT_texture_filter_anisotropic = has_ext("GL_EXT_texture_filter_anisotropic"); GLAD_GL_SGIS_generate_mipmap = has_ext("GL_SGIS_generate_mipmap"); free_exts(); return 1; }
static int find_extensionsGLX(void) { if (!get_exts()) return 0; GLAD_GLX_ARB_create_context = has_ext("GLX_ARB_create_context"); GLAD_GLX_ARB_create_context_profile = has_ext("GLX_ARB_create_context_profile"); GLAD_GLX_ARB_framebuffer_sRGB = has_ext("GLX_ARB_framebuffer_sRGB"); GLAD_GLX_ARB_multisample = has_ext("GLX_ARB_multisample"); GLAD_GLX_EXT_create_context_es2_profile = has_ext("GLX_EXT_create_context_es2_profile"); GLAD_GLX_EXT_create_context_es_profile = has_ext("GLX_EXT_create_context_es_profile"); GLAD_GLX_EXT_swap_control = has_ext("GLX_EXT_swap_control"); free_exts(); return 1; }
static int find_extensionsGL(void) { if (!get_exts()) return 0; GLAD_GL_ARB_framebuffer_object = has_ext("GL_ARB_framebuffer_object"); free_exts(); return 1; }