int gladLoadGLXLoader(GLADloadproc load, Display *dpy, int screen) { glXQueryVersion = (PFNGLXQUERYVERSIONPROC)load("glXQueryVersion"); if(glXQueryVersion == NULL) return 0; find_coreGLX(dpy, screen); load_GLX_VERSION_1_0(load); load_GLX_VERSION_1_1(load); load_GLX_VERSION_1_2(load); load_GLX_VERSION_1_3(load); load_GLX_VERSION_1_4(load); if (!find_extensionsGLX()) return 0; load_GLX_ARB_create_context(load); load_GLX_EXT_swap_control(load); return 1; }
int gladLoadGLXLoader(GLADloadproc load, Display *dpy, int screen) { glXQueryVersion = (PFNGLXQUERYVERSIONPROC)load("glXQueryVersion"); if(glXQueryVersion == NULL) return 0; find_coreGLX(dpy, screen); load_GLX_VERSION_1_0(load); load_GLX_VERSION_1_1(load); load_GLX_VERSION_1_2(load); load_GLX_VERSION_1_3(load); load_GLX_VERSION_1_4(load); find_extensionsGLX(); load_GLX_EXT_import_context(load); load_GLX_SGIX_dmbuffer(load); load_GLX_SGIX_pbuffer(load); load_GLX_SGIX_hyperpipe(load); load_GLX_MESA_set_3dfx_mode(load); load_GLX_SGIX_video_resize(load); load_GLX_MESA_pixmap_colormap(load); load_GLX_NV_copy_image(load); load_GLX_NV_swap_group(load); load_GLX_OML_sync_control(load); load_GLX_SGI_video_sync(load); load_GLX_NV_video_capture(load); load_GLX_EXT_texture_from_pixmap(load); load_GLX_NV_video_out(load); load_GLX_NV_delay_before_swap(load); load_GLX_SGI_make_current_read(load); load_GLX_SGIX_swap_group(load); load_GLX_EXT_swap_control(load); load_GLX_SGIX_video_source(load); load_GLX_MESA_query_renderer(load); load_GLX_ARB_create_context(load); load_GLX_SGI_swap_control(load); load_GLX_SGIX_fbconfig(load); load_GLX_SGI_cushion(load); load_GLX_MESA_release_buffers(load); load_GLX_MESA_copy_sub_buffer(load); load_GLX_MESA_agp_offset(load); load_GLX_NV_copy_buffer(load); load_GLX_NV_present_video(load); load_GLX_SUN_get_transparent_index(load); load_GLX_AMD_gpu_association(load); load_GLX_SGIX_swap_barrier(load); load_GLX_ARB_get_proc_address(load); return 1; }