Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
423:d8630c086926 | 424:f4d76d3d6f2a |
---|---|
178 glMatrixMode(GL_MODELVIEW) | 178 glMatrixMode(GL_MODELVIEW) |
179 glLoadMatrixf(matrix_to_floats(self.interface_mvp)) | 179 glLoadMatrixf(matrix_to_floats(self.interface_mvp)) |
180 glDisable(GL_FOG) | 180 glDisable(GL_FOG) |
181 else: | 181 else: |
182 self.interface_shader.bind() | 182 self.interface_shader.bind() |
183 #self.interface_shader.uniform_matrixf('mvp', matrix_to_floats(self.interface_mvp)) | 183 self.interface_shader.uniform_matrix('mvp', self.interface_mvp) |
184 self.interface_shader.uniform_matrixf('mvp', self.interface_mvp.get_c_data()) | |
185 glViewport(0, 0, self.width, self.height) | 184 glViewport(0, 0, self.width, self.height) |
186 | 185 |
187 items = [item for item in interface.items if item.anmrunner and item.anmrunner.running] | 186 items = [item for item in interface.items if item.anmrunner and item.anmrunner.running] |
188 labels = interface.labels.values() | 187 labels = interface.labels.values() |
189 | 188 |