diff pytouhou/ui/renderer.pyx @ 435:878273a984c4

Improve Matrix representation, using float[16] instead of imbricated python lists.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 07 Aug 2013 11:34:40 +0200
parents 5d7bb2fd74f7
children d56536ef28e8
line wrap: on
line diff
--- a/pytouhou/ui/renderer.pyx
+++ b/pytouhou/ui/renderer.pyx
@@ -67,7 +67,7 @@ cdef class Renderer:
                 rec = indices_by_texture.setdefault(key, [])
 
                 # Pack data in buffer
-                (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4, z4) = vertices
+                x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4 = vertices
                 left, right, bottom, top = uvs
                 r, g, b, a = colors
                 self.vertex_buffer[nb_vertices] = Vertex(x1 + ox, y1 + oy, z1, left, bottom, r, g, b, a)