comparison pytouhou/ui/window.pxd @ 589:0768122da817

Add a frameskip option, and use swap interval to implement it.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 10 Oct 2014 15:59:11 +0200
parents 00f228b57840
children 12756994a92c
comparison
equal deleted inserted replaced
588:7a82c4b52b16 589:0768122da817
20 20
21 cdef class Window: 21 cdef class Window:
22 cdef sdl.Window win 22 cdef sdl.Window win
23 cdef Runner runner 23 cdef Runner runner
24 cdef Clock clock 24 cdef Clock clock
25 cdef int frame, frameskip
25 26
26 cdef void set_size(self, int width, int height) nogil 27 cdef void set_size(self, int width, int height) nogil
27 cpdef set_runner(self, Runner runner=*) 28 cpdef set_runner(self, Runner runner=*)
28 cpdef run(self) 29 cpdef run(self)
29 cdef bint run_frame(self) except? False 30 cdef bint run_frame(self) except? False