예제 #1
0
int glLoadFunctions(void)
{
	open_libgl();
	load_procs();
	close_libgl();
	return 1;
}
예제 #2
0
파일: gles2w.c 프로젝트: OGRECave/ogre
int gleswInit(void)
{
    open_libgl();
    load_procs();
    close_libgl();
    return parse_version();
}
예제 #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;
	}
예제 #4
0
int gl3wInit2(GL3WGetProcAddressProc proc)
{
	int res = open_libgl();
	if (res)
		return res;

	atexit(close_libgl);
	load_procs(proc);
	return parse_version();
}
예제 #5
0
파일: glxw_egl.c 프로젝트: Nuos/crawler
int glxwInitEGLCtx(struct glxw_egl *ctx)
{
    void *libgl;
    if((libgl = open_libgl()))
    {
        load_procs(libgl, ctx);
        close_libgl(libgl);
        return 0;
    }
    return -1;
}
예제 #6
0
파일: gl3w.cpp 프로젝트: benmalartre/Toonix
int gl3wInit2(GL3WGetProcAddressProc proc)
{
	load_procs(proc);
	return parse_version();
}
예제 #7
0
파일: gles2w.c 프로젝트: OGRECave/ogre
int gleswInitWithGetProc(void* (*getproc)(const char*))
{
    get_proc = getproc;
    load_procs();
    return parse_version();
}