comparison pytouhou/lib/sdl.pxd @ 464:36bc577b2392

Make the window resizable, and scale its content correctly.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 11 Sep 2013 15:55:19 +0200
parents ec327e58b477
children 2276229282fd
comparison
equal deleted inserted replaced
463:11708a1d0a1a 464:36bc577b2392
21 cdef SDL_GLattr GL_DEPTH_SIZE 21 cdef SDL_GLattr GL_DEPTH_SIZE
22 22
23 cdef SDL_WindowFlags WINDOWPOS_CENTERED 23 cdef SDL_WindowFlags WINDOWPOS_CENTERED
24 cdef SDL_WindowFlags WINDOW_OPENGL 24 cdef SDL_WindowFlags WINDOW_OPENGL
25 cdef SDL_WindowFlags WINDOW_SHOWN 25 cdef SDL_WindowFlags WINDOW_SHOWN
26 cdef SDL_WindowFlags WINDOW_RESIZABLE
26 27
27 #TODO: should be SDL_Scancode, but Cython doesn’t allow enum for array indexing. 28 #TODO: should be SDL_Scancode, but Cython doesn’t allow enum for array indexing.
28 cdef long SCANCODE_Z 29 cdef long SCANCODE_Z
29 cdef long SCANCODE_X 30 cdef long SCANCODE_X
30 cdef long SCANCODE_LSHIFT 31 cdef long SCANCODE_LSHIFT
33 cdef long SCANCODE_LEFT 34 cdef long SCANCODE_LEFT
34 cdef long SCANCODE_RIGHT 35 cdef long SCANCODE_RIGHT
35 cdef long SCANCODE_LCTRL 36 cdef long SCANCODE_LCTRL
36 cdef long SCANCODE_ESCAPE 37 cdef long SCANCODE_ESCAPE
37 38
39 cdef SDL_WindowEventID WINDOWEVENT_RESIZED
40
38 cdef SDL_EventType KEYDOWN 41 cdef SDL_EventType KEYDOWN
39 cdef SDL_EventType QUIT 42 cdef SDL_EventType QUIT
43 cdef SDL_EventType WINDOWEVENT
40 44
41 45
42 cdef class Window: 46 cdef class Window:
43 cdef SDL_Window *window 47 cdef SDL_Window *window
44 cdef SDL_GLContext context 48 cdef SDL_GLContext context