diff pytouhou/ui/window.pyx @ 423:d8630c086926

Replace Pyglet with our own Cython OpenGL wrapper.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents pytouhou/ui/window.py@52829ebe2561
children 2a352118c55a
line wrap: on
line diff
copy from pytouhou/ui/window.py
copy to pytouhou/ui/window.pyx
--- a/pytouhou/ui/window.py
+++ b/pytouhou/ui/window.pyx
@@ -15,10 +15,10 @@
 
 from pytouhou.lib import sdl
 
-from pyglet.gl import (glEnable, glHint, glEnableClientState, GL_TEXTURE_2D,
-                       GL_BLEND, GL_PERSPECTIVE_CORRECTION_HINT, GL_FOG_HINT,
-                       GL_NICEST, GL_COLOR_ARRAY, GL_VERTEX_ARRAY,
-                       GL_TEXTURE_COORD_ARRAY)
+from pytouhou.lib.opengl cimport \
+         (glEnable, glHint, glEnableClientState, GL_TEXTURE_2D, GL_BLEND,
+          GL_PERSPECTIVE_CORRECTION_HINT, GL_FOG_HINT, GL_NICEST,
+          GL_COLOR_ARRAY, GL_VERTEX_ARRAY, GL_TEXTURE_COORD_ARRAY)
 
 
 class Clock(object):