comparison 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
comparison
equal deleted inserted replaced
785:f73e8524c045 786:7e940ebeb5fd
87 cdef class Color: 87 cdef class Color:
88 cdef SDL_Color color 88 cdef SDL_Color color
89 89
90 90
91 cdef class Surface: 91 cdef class Surface:
92 cdef bytes data
92 cdef SDL_Surface *surface 93 cdef SDL_Surface *surface
93 94
94 cdef bint blit(self, Surface other) except True 95 cdef bint blit(self, Surface other) except True
95 cdef void set_alpha(self, Surface alpha_surface) nogil 96 cdef void set_alpha(self, Surface alpha_surface) nogil
96 97
100 101
101 cdef Surface render(self, unicode text) 102 cdef Surface render(self, unicode text)
102 103
103 104
104 cdef bint init(Uint32 flags) except True 105 cdef bint init(Uint32 flags) except True
105 cdef bint img_init(int flags) except True
106 cdef bint ttf_init() except True 106 cdef bint ttf_init() except True
107 cdef bint gl_set_attribute(SDL_GLattr attr, int value) except True 107 cdef bint gl_set_attribute(SDL_GLattr attr, int value) except True
108 cdef Surface load_png(file_) 108 cdef Surface create_rgba_surface(bytes pixels, int width, int height)
109 cdef Surface create_rgb_surface(int width, int height, int depth, Uint32 rmask=*, Uint32 gmask=*, Uint32 bmask=*, Uint32 amask=*)
110 cdef Uint32 get_ticks() nogil 109 cdef Uint32 get_ticks() nogil
111 cdef void delay(Uint32 ms) nogil 110 cdef void delay(Uint32 ms) nogil
112 cpdef bint show_simple_message_box(unicode message) except True 111 cpdef bint show_simple_message_box(unicode message) except True