logo
pub unsafe fn load_global_gl_with<F>(get_proc_address: F) where
    F: FnMut(*const i8) -> *mut c_void
Expand description

Loads all global functions using the get_proc_address given.

The closure should, when given a None-terminated name of a function, return a pointer to that function. If the fn isn’t available, then a None pointer should be returned instead.

This allows you to call SDL_GL_GetProcAddress, wglGetProcAddress, or some similar function, depending on your OS.