comparison pytouhou/opengl/gamerenderer.py @ 120:4300a832f033

Small refactoring and massive performance improvement
author Thibaut Girka <thib@sitedethib.com>
date Thu, 08 Sep 2011 12:46:05 +0200
parents fad7b44cebf2
children 174324a4da51
comparison
equal deleted inserted replaced
119:fad7b44cebf2 120:4300a832f033
59 pyglet.app.run() 59 pyglet.app.run()
60 60
61 61
62 def on_resize(self, width, height): 62 def on_resize(self, width, height):
63 glViewport(0, 0, width, height) 63 glViewport(0, 0, width, height)
64
65 64
66 65
67 def update(self, dt): 66 def update(self, dt):
68 if self.background: 67 if self.background:
69 self.background.update(self.game.game_state.frame) 68 self.background.update(self.game.game_state.frame)