Mercurial > touhou
view pytouhou/ui/window.pxd @ 596:ab131d04987d
Fix a regression introduced in the previous commit when the interface has a different resolution than 640×480 and framebuffer_blit is enabled.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 25 Oct 2014 18:49:41 +0200 |
parents | 12756994a92c |
children | 3c2f96f1d715 |
line wrap: on
line source
from pytouhou.lib cimport sdl cdef class Clock: cdef unsigned long _ref_tick cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame cdef double fps cdef void set_target_fps(self, long fps) nogil cdef void tick(self) nogil except * cdef class Runner: cdef long width, height cdef void start(self) except * cdef void finish(self) except * cpdef bint update(self, bint render) except? False cdef class Window: cdef sdl.Window win cdef Runner runner cdef Clock clock cdef int frame, frameskip cdef int width, height cdef void set_size(self, int width, int height) nogil cpdef set_runner(self, Runner runner=*) cpdef run(self) cdef bint run_frame(self) except? False cdef double get_fps(self) nogil