Esempio n. 1
0
int glLoadFunctions(void)
{
	open_libgl();
	load_procs();
	close_libgl();
	return 1;
}
Esempio n. 2
0
int gleswInit(void)
{
    open_libgl();
    load_procs();
    close_libgl();
    return parse_version();
}
Esempio n. 3
0
	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;
	}
Esempio n. 4
0
int gl3wInit2(GL3WGetProcAddressProc proc)
{
	int res = open_libgl();
	if (res)
		return res;

	atexit(close_libgl);
	load_procs(proc);
	return parse_version();
}
Esempio n. 5
0
int glxwInitEGLCtx(struct glxw_egl *ctx)
{
    void *libgl;
    if((libgl = open_libgl()))
    {
        load_procs(libgl, ctx);
        close_libgl(libgl);
        return 0;
    }
    return -1;
}
Esempio n. 6
0
int gl3wInit2(GL3WGetProcAddressProc proc)
{
	load_procs(proc);
	return parse_version();
}
Esempio n. 7
0
int gleswInitWithGetProc(void* (*getproc)(const char*))
{
    get_proc = getproc;
    load_procs();
    return parse_version();
}