comparison pytouhou/lib/_sdl.pxd @ 456:cae1ae9de430

Add native text support, MSG instructions 3 and 8, and text at the beginning of a stage.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:11:40 +0200
parents 6864a38b2413
children 36bc577b2392
comparison
equal deleted inserted replaced
455:6864a38b2413 456:cae1ae9de430
162 int Mix_Volume(int channel, int volume) 162 int Mix_Volume(int channel, int volume)
163 int Mix_VolumeChunk(Mix_Chunk *chunk, int volume) 163 int Mix_VolumeChunk(Mix_Chunk *chunk, int volume)
164 int Mix_VolumeMusic(int volume) 164 int Mix_VolumeMusic(int volume)
165 165
166 int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops) 166 int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
167
168
169 cdef extern from "SDL_pixels.h" nogil:
170 ctypedef struct SDL_Color:
171 Uint8 r, g, b, a
172
173
174 cdef extern from "SDL_ttf.h" nogil:
175 ctypedef struct TTF_Font:
176 pass
177
178 int TTF_Init()
179 void TTF_Quit()
180 TTF_Font *TTF_OpenFont(const char *filename, int ptsize)
181 void TTF_CloseFont(TTF_Font *font)
182 SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color fg)