comparison pytouhou/ui/renderer.pyx @ 245:d3ba32a9096e

Implement ANM0 instruction 29 and fix 24
author Thibaut Girka <thib@sitedethib.com>
date Mon, 02 Jan 2012 18:46:55 +0100
parents 98c64ffcbdff
children 6f1ca1cb5238
comparison
equal deleted inserted replaced
244:2b7f69ad9ccd 245:d3ba32a9096e
46 46
47 indices_by_texture = {} 47 indices_by_texture = {}
48 48
49 for element in elements: 49 for element in elements:
50 sprite = element._sprite 50 sprite = element._sprite
51 if sprite: 51 if sprite and sprite.visible:
52 ox, oy = element.x, element.y 52 ox, oy = element.x, element.y
53 key, (vertices, uvs, colors) = get_sprite_rendering_data(sprite) 53 key, (vertices, uvs, colors) = get_sprite_rendering_data(sprite)
54 rec = indices_by_texture.setdefault(key, []) 54 rec = indices_by_texture.setdefault(key, [])
55 55
56 # Pack data in buffer 56 # Pack data in buffer