[−][src]Function gl46::global_commands::load_global_gl_with
pub unsafe fn load_global_gl_with<F>(get_proc_address: F) where
F: FnMut(*const c_char) -> *mut c_void,
Loads all global functions using the get_proc_address
given.
The closure should, when given a null-terminated name of a function, return a pointer to that function. If the function isn't available, then a null pointer should be returned instead.
This allows you to call SDL_GL_GetProcAddress, wglGetProcAddress, or some similar function, depending on your OS.