int glLoadFunctions(void) { open_libgl(); load_procs(); close_libgl(); return 1; }
int gleswInit(void) { open_libgl(); load_procs(); close_libgl(); return parse_version(); }
bool ThreadedSafePDH::reload_unsafe() { for(subscriber_list::const_iterator cit = subscribers_.begin(); cit != subscribers_.end(); ++cit) (*cit)->on_unload(); unload_procs(); load_procs(); for(subscriber_list::const_iterator cit = subscribers_.begin(); cit != subscribers_.end(); ++cit) (*cit)->on_reload(); return true; }
int gl3wInit2(GL3WGetProcAddressProc proc) { int res = open_libgl(); if (res) return res; atexit(close_libgl); load_procs(proc); return parse_version(); }
int glxwInitEGLCtx(struct glxw_egl *ctx) { void *libgl; if((libgl = open_libgl())) { load_procs(libgl, ctx); close_libgl(libgl); return 0; } return -1; }
int gl3wInit2(GL3WGetProcAddressProc proc) { load_procs(proc); return parse_version(); }
int gleswInitWithGetProc(void* (*getproc)(const char*)) { get_proc = getproc; load_procs(); return parse_version(); }