Mercurial > touhou
comparison pytouhou/ui/opengl/gamerenderer.pyx @ 515:b3193b43a86c
Add an indirection layer for textures, to cope with drivers assigning them random names.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 06 Dec 2013 19:02:42 +0100 |
parents | 5e3e0b09a531 |
children | 577c3a88fb67 |
comparison
equal
deleted
inserted
replaced
514:3d4410de78e1 | 515:b3193b43a86c |
---|---|
57 | 57 |
58 | 58 |
59 def load_background(self, background): | 59 def load_background(self, background): |
60 if background is not None: | 60 if background is not None: |
61 self.background_renderer = BackgroundRenderer(self.use_fixed_pipeline) | 61 self.background_renderer = BackgroundRenderer(self.use_fixed_pipeline) |
62 self.background_renderer.load(background) | 62 self.background_renderer.load(background, self) |
63 else: | 63 else: |
64 self.background_renderer = None | 64 self.background_renderer = None |
65 | 65 |
66 | 66 |
67 def start(self, common): | 67 def start(self, common): |