Mercurial > touhou
comparison pytouhou/ui/opengl/gamerenderer.pyx @ 540:53fa73932e9a
Fix warnings introduced in Cython 0.20, when more than one pointer is defined on the same line.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 10 May 2014 22:20:22 +0200 |
parents | 6e3b3d5d4691 |
children | 8f51e34d911c |
comparison
equal
deleted
inserted
replaced
539:d6d9a711253d | 540:53fa73932e9a |
---|---|
99 self.render_framebuffer(self.framebuffer) | 99 self.render_framebuffer(self.framebuffer) |
100 | 100 |
101 | 101 |
102 cdef void render_game(self, Game game): | 102 cdef void render_game(self, Game game): |
103 cdef long game_x, game_y | 103 cdef long game_x, game_y |
104 cdef float x, y, z, dx, dy, dz, fog_data[4], fog_start, fog_end | 104 cdef float x, y, z, dx, dy, dz |
105 cdef float fog_data[4] | |
106 cdef float fog_start, fog_end | |
105 cdef unsigned char fog_r, fog_g, fog_b | 107 cdef unsigned char fog_r, fog_g, fog_b |
106 cdef Matrix *mvp | 108 cdef Matrix *mvp |
107 | 109 |
108 game_x, game_y = game.interface.game_pos | 110 game_x, game_y = game.interface.game_pos |
109 glViewport(game_x, game_y, game.width, game.height) | 111 glViewport(game_x, game_y, game.width, game.height) |