Mercurial > touhou
comparison pytouhou/ui/anmrenderer.pyx @ 426:5d7bb2fd74f7
Never keep texture on the host when it has been uploaded, and prevent them from being decoded again.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 16 Jul 2013 21:11:35 +0200 |
parents | 1104dc2553ee |
children | c9433188ffdb |
comparison
equal
deleted
inserted
replaced
425:1104dc2553ee | 426:5d7bb2fd74f7 |
---|---|
35 self.use_fixed_pipeline = window.use_fixed_pipeline #XXX | 35 self.use_fixed_pipeline = window.use_fixed_pipeline #XXX |
36 | 36 |
37 Renderer.__init__(self, resource_loader) | 37 Renderer.__init__(self, resource_loader) |
38 | 38 |
39 self.window = window | 39 self.window = window |
40 self.texture_manager.preload(resource_loader.instanced_anms.values()) | 40 self.texture_manager.load(resource_loader.instanced_anms.values()) |
41 | 41 |
42 self._anm_wrapper = anm_wrapper | 42 self._anm_wrapper = anm_wrapper |
43 self.sprites = sprites | 43 self.sprites = sprites |
44 self.clear_color = (0., 0., 0., 1.) | 44 self.clear_color = (0., 0., 0., 1.) |
45 self.force_allow_dest_offset = False | 45 self.force_allow_dest_offset = False |