Mercurial > touhou
comparison pytouhou/ui/window.pxd @ 503:c622eaf64428
Optimize GameRunner some more, fix replay, and remove Window dependency in Renderer.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 04 Oct 2013 14:27:11 +0200 |
parents | 2276229282fd |
children | b39ad30c6620 |
comparison
equal
deleted
inserted
replaced
502:3d3285918ba1 | 503:c622eaf64428 |
---|---|
1 from pytouhou.lib cimport sdl | 1 from pytouhou.lib cimport sdl |
2 from .gamerenderer cimport GameRenderer | |
2 | 3 |
3 | 4 |
4 cdef class Clock: | 5 cdef class Clock: |
5 cdef unsigned long _ref_tick | 6 cdef unsigned long _ref_tick |
6 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame | 7 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame |
20 | 21 |
21 | 22 |
22 cdef class Window: | 23 cdef class Window: |
23 cdef sdl.Window win | 24 cdef sdl.Window win |
24 cdef long fps_limit | 25 cdef long fps_limit |
25 cdef public long x, y, width, height | |
26 cdef public bint use_fixed_pipeline | 26 cdef public bint use_fixed_pipeline |
27 cdef Runner runner | 27 cdef Runner runner |
28 cdef Clock clock | 28 cdef Clock clock |
29 | 29 |
30 cdef void set_size(self, int width, int height) nogil | 30 cdef void set_size(self, int width, int height) nogil |