comparison pytouhou/lib/sdl.pyx @ 422:52829ebe2561

Refactor window management in its own class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents b1248bab2d0f
children 2a352118c55a
comparison
equal deleted inserted replaced
421:b1248bab2d0f 422:52829ebe2561
63 SDL_GL_SwapWindow(self.window) 63 SDL_GL_SwapWindow(self.window)
64 64
65 def gl_delete_context(self): 65 def gl_delete_context(self):
66 SDL_GL_DeleteContext(self.context) 66 SDL_GL_DeleteContext(self.context)
67 67
68 def set_window_size(self, width, height):
69 SDL_SetWindowSize(self.window, width, height)
70
68 71
69 cdef class Surface: 72 cdef class Surface:
70 cdef SDL_Surface *surface 73 cdef SDL_Surface *surface
71 74
72 def __dealloc__(self): 75 def __dealloc__(self):