comparison pytouhou/ui/window.pxd @ 458:1b56d62250ab

Make pytouhou.ui.{window,shader,game{runner,renderer}} extension types.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Sep 2013 23:11:54 +0200
parents
children 11708a1d0a1a
comparison
equal deleted inserted replaced
457:4ccc47828002 458:1b56d62250ab
1 from pytouhou.lib cimport sdl
2
3
4 cdef class Clock:
5 cdef long _target_fps, _ref_tick, _ref_frame, _fps_tick, _fps_frame
6 cdef double _rate
7
8 cdef void set_target_fps(self, long fps) nogil
9 cdef double get_fps(self) nogil
10 cdef void tick(self) nogil except *
11
12
13 cdef class Window:
14 cdef sdl.Window win
15 cdef long fps_limit
16 cdef public long width, height
17 cdef public bint use_fixed_pipeline
18 cdef object runner
19 cdef Clock clock
20
21 cdef void set_size(self, int width, int height) nogil
22 cpdef set_runner(self, runner=*)
23 cpdef run(self)
24 cdef bint run_frame(self) except? False
25 cpdef double get_fps(self)