comparison pytouhou/ui/opengl/gamerenderer.pyx @ 586:4b0593da29d5

Simplify framebuffer rendering with glDrawArrays, and move it all to its own file.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Oct 2014 16:34:24 +0200
parents 6e79756b7f42
children 6c9d8a3d853f
comparison
equal deleted inserted replaced
585:e0166cda75d5 586:4b0593da29d5
69 69
70 def load_background(self, background): 70 def load_background(self, background):
71 self.background = background 71 self.background = background
72 if background is not None: 72 if background is not None:
73 self.background_renderer = BackgroundRenderer() 73 self.background_renderer = BackgroundRenderer()
74 self.background_renderer.load(background, self) 74 self.background_renderer.load(background, self.textures)
75 else: 75 else:
76 self.background_renderer = None 76 self.background_renderer = None
77 77
78 78
79 def start(self, common): 79 def start(self, common):