Mercurial > touhou
comparison pytouhou/opengl/gamerenderer.py @ 122:174324a4da51
Add support for launch animations! (Warning: slow :()
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 10 Sep 2011 01:26:30 +0200 |
parents | 4300a832f033 |
children | d1c82d43bbf3 |
comparison
equal
deleted
inserted
replaced
121:1bc0ad774ed4 | 122:174324a4da51 |
---|---|
53 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) | 53 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) |
54 glEnableClientState(GL_COLOR_ARRAY) | 54 glEnableClientState(GL_COLOR_ARRAY) |
55 glEnableClientState(GL_VERTEX_ARRAY) | 55 glEnableClientState(GL_VERTEX_ARRAY) |
56 glEnableClientState(GL_TEXTURE_COORD_ARRAY) | 56 glEnableClientState(GL_TEXTURE_COORD_ARRAY) |
57 | 57 |
58 pyglet.clock.schedule_interval(self.update, 1./120) | 58 pyglet.clock.schedule_interval(self.update, 1./60) |
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) |