More OpenGL bindings

This commit is contained in:
Kovid Goyal
2016-11-03 10:30:35 +05:30
parent cded235526
commit 06b42a7e1c
5 changed files with 142 additions and 31 deletions
+3 -2
View File
@@ -14,7 +14,8 @@ from .config import load_config
from .constants import appname, str_version, config_dir
from .boss import Boss
from .utils import fork_child, hangup
from .shaders import GL_VERSION, check_for_required_extensions
from .shaders import GL_VERSION
from .fast_data_types import glewInit
import glfw
@@ -53,7 +54,7 @@ def run_app(opts, args):
glfw.glfwSetWindowTitle(window, appname.encode('utf-8'))
try:
glfw.glfwMakeContextCurrent(window)
check_for_required_extensions()
glewInit()
glfw.glfwSwapInterval(1)
boss = Boss(window, window_width, window_height, opts, args)
glfw.glfwSetFramebufferSizeCallback(window, boss.on_window_resize)