diff pytouhou/lib/_sdl.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 c34b23e29d16
children 19d930f9e3f0
line wrap: on
line diff
--- a/pytouhou/lib/_sdl.pxd
+++ b/pytouhou/lib/_sdl.pxd
@@ -56,6 +56,7 @@ cdef extern from "SDL_video.h" nogil:
     ctypedef void *SDL_GLContext
 
     int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
+    int SDL_GL_SetSwapInterval(int interval)
     SDL_Window *SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
     SDL_GLContext SDL_GL_CreateContext(SDL_Window *window)
     void SDL_GL_SwapWindow(SDL_Window *window)