示例#1
0
 def on_resize(window,w, h):
     g_pool.gui.update_window(w,h)
     g_pool.gui.collect_menus()
     graph.adjust_size(w,h)
     adjust_gl_view(w,h)
     for p in g_pool.plugins:
         p.on_window_resize(window,w,h)
示例#2
0
文件: main.py 项目: elmorg/pupil
 def on_resize(window, w, h):
     g_pool.gui.update_window(w, h)
     g_pool.gui.collect_menus()
     graph.adjust_size(w, h)
     adjust_gl_view(w, h)
     for p in g_pool.plugins:
         p.on_window_resize(window, w, h)
示例#3
0
文件: eye.py 项目: mbiesaga/pupil
 def on_resize(window, w, h):
     active_window = glfwGetCurrentContext()
     glfwMakeContextCurrent(window)
     g_pool.gui.update_window(w, h)
     graph.adjust_size(w, h)
     adjust_gl_view(w, h)
     glfwMakeContextCurrent(active_window)
示例#4
0
 def on_resize(window,w, h):
     active_window = glfwGetCurrentContext()
     glfwMakeContextCurrent(window)
     g_pool.gui.update_window(w,h)
     graph.adjust_size(w,h)
     adjust_gl_view(w,h)
     glfwMakeContextCurrent(active_window)
示例#5
0
文件: eye.py 项目: Mazzafish/pupil
 def on_resize(window,w, h):
     active_window = glfwGetCurrentContext()
     glfwMakeContextCurrent(window)
     hdpi_factor = glfwGetFramebufferSize(window)[0]/glfwGetWindowSize(window)[0]
     w,h = w*hdpi_factor, h*hdpi_factor
     g_pool.gui.update_window(w,h)
     graph.adjust_size(w,h)
     adjust_gl_view(w,h)
     # for p in g_pool.plugins:
         # p.on_window_resize(window,w,h)
     glfwMakeContextCurrent(active_window)
示例#6
0
 def on_resize(window, w, h):
     active_window = glfwGetCurrentContext()
     glfwMakeContextCurrent(window)
     hdpi_factor = glfwGetFramebufferSize(window)[0] / glfwGetWindowSize(
         window)[0]
     w, h = w * hdpi_factor, h * hdpi_factor
     g_pool.gui.update_window(w, h)
     graph.adjust_size(w, h)
     adjust_gl_view(w, h)
     # for p in g_pool.plugins:
     # p.on_window_resize(window,w,h)
     glfwMakeContextCurrent(active_window)