Mercurial > touhou
comparison pytouhou/lib/sdl.pxd @ 420:3a7b36324611
Replace Pyglet’s image loader with our SDL2_image-based one.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 16 Jul 2013 21:07:15 +0200 |
parents | 1c92721f8e49 |
children | b1248bab2d0f |
comparison
equal
deleted
inserted
replaced
419:1c92721f8e49 | 420:3a7b36324611 |
---|---|
89 | 89 |
90 | 90 |
91 cdef extern from "SDL_timer.h": | 91 cdef extern from "SDL_timer.h": |
92 Uint32 SDL_GetTicks() | 92 Uint32 SDL_GetTicks() |
93 void SDL_Delay(Uint32 ms) | 93 void SDL_Delay(Uint32 ms) |
94 | |
95 | |
96 cdef extern from "SDL_rect.h": | |
97 ctypedef struct SDL_Rect: | |
98 int x, y | |
99 int w, h | |
100 | |
101 | |
102 cdef extern from "SDL_surface.h": | |
103 ctypedef struct SDL_Surface: | |
104 int w, h | |
105 unsigned char *pixels | |
106 | |
107 void SDL_FreeSurface(SDL_Surface *surface) | |
108 int SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect) | |
109 SDL_Surface *SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) | |
110 | |
111 | |
112 cdef extern from "SDL_rwops.h": | |
113 ctypedef struct SDL_RWops: | |
114 pass | |
115 | |
116 SDL_RWops *SDL_RWFromConstMem(const void *mem, int size) | |
117 int SDL_RWclose(SDL_RWops *context) | |
118 | |
119 | |
120 cdef extern from "SDL_image.h": | |
121 int IMG_INIT_PNG | |
122 | |
123 int IMG_Init(int flags) | |
124 void IMG_Quit() | |
125 SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) |