comparison pytouhou/ui/renderer.pyx @ 304:f3099ebf4f61

Update attribute names to reflect the actual interface.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 13 Mar 2012 18:38:14 +0100
parents 6f1ca1cb5238
children 74471afbac37
comparison
equal deleted inserted replaced
303:647bde10353d 304:f3099ebf4f61
48 48
49 for element in elements: 49 for element in elements:
50 if nb_vertices >= MAX_ELEMENTS - 4: 50 if nb_vertices >= MAX_ELEMENTS - 4:
51 break 51 break
52 52
53 sprite = element._sprite 53 sprite = element.sprite
54 if sprite and sprite.visible: 54 if sprite and sprite.visible:
55 ox, oy = element.x, element.y 55 ox, oy = element.x, element.y
56 key, (vertices, uvs, colors) = get_sprite_rendering_data(sprite) 56 key, (vertices, uvs, colors) = get_sprite_rendering_data(sprite)
57 rec = indices_by_texture.setdefault(key, []) 57 rec = indices_by_texture.setdefault(key, [])
58 58