Mercurial > touhou
diff pytouhou/lib/_sdl.pxd @ 786:7e940ebeb5fd
Replace SDL2_image with the image crate
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Mon, 01 Dec 2025 17:05:48 +0100 |
| parents | ec1e06402a97 |
| children |
line wrap: on
line diff
--- a/pytouhou/lib/_sdl.pxd +++ b/pytouhou/lib/_sdl.pxd @@ -146,7 +146,7 @@ void SDL_FreeSurface(SDL_Surface *surface) int SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect) - SDL_Surface *SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) + SDL_Surface *SDL_CreateRGBSurfaceWithFormatFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 fmt) cdef extern from "SDL_rwops.h" nogil: @@ -157,18 +157,13 @@ int SDL_RWclose(SDL_RWops *context) -cdef extern from "SDL_image.h" nogil: - int IMG_INIT_PNG - - int IMG_Init(int flags) - void IMG_Quit() - SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) - - cdef extern from "SDL_pixels.h" nogil: ctypedef struct SDL_Color: Uint8 r, g, b, a + ctypedef enum SDL_PixelFormatEnum: + SDL_PIXELFORMAT_ABGR8888 + cdef extern from "SDL_ttf.h" nogil: ctypedef struct TTF_Font:
