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 f73e8524c045
children
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pxd
+++ b/pytouhou/lib/sdl.pxd
@@ -89,6 +89,7 @@
 
 
 cdef class Surface:
+    cdef bytes data
     cdef SDL_Surface *surface
 
     cdef bint blit(self, Surface other) except True
@@ -102,11 +103,9 @@
 
 
 cdef bint init(Uint32 flags) except True
-cdef bint img_init(int flags) except True
 cdef bint ttf_init() except True
 cdef bint gl_set_attribute(SDL_GLattr attr, int value) except True
-cdef Surface load_png(file_)
-cdef Surface create_rgb_surface(int width, int height, int depth, Uint32 rmask=*, Uint32 gmask=*, Uint32 bmask=*, Uint32 amask=*)
+cdef Surface create_rgba_surface(bytes pixels, int width, int height)
 cdef Uint32 get_ticks() nogil
 cdef void delay(Uint32 ms) nogil
 cpdef bint show_simple_message_box(unicode message) except True