diff pytouhou/ui/gamerunner.pyx @ 424:f4d76d3d6f2a

Make the Shader class use cython too.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents d8630c086926
children 5d7bb2fd74f7
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.pyx
+++ b/pytouhou/ui/gamerunner.pyx
@@ -180,8 +180,7 @@ class GameRunner(GameRenderer):
             glDisable(GL_FOG)
         else:
             self.interface_shader.bind()
-            #self.interface_shader.uniform_matrixf('mvp', matrix_to_floats(self.interface_mvp))
-            self.interface_shader.uniform_matrixf('mvp', self.interface_mvp.get_c_data())
+            self.interface_shader.uniform_matrix('mvp', self.interface_mvp)
         glViewport(0, 0, self.width, self.height)
 
         items = [item for item in interface.items if item.anmrunner and item.anmrunner.running]