Mercurial > touhou
comparison pytouhou/lib/_sdl.pxd @ 512:b39ad30c6620
Add a pure SDL backend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 05 Dec 2013 01:55:39 +0100 |
parents | 36bc577b2392 |
children | a7dc55ad9380 |
comparison
equal
deleted
inserted
replaced
511:2e8ceaa85d5c | 512:b39ad30c6620 |
---|---|
40 SDL_GL_DEPTH_SIZE | 40 SDL_GL_DEPTH_SIZE |
41 | 41 |
42 ctypedef enum SDL_WindowFlags: | 42 ctypedef enum SDL_WindowFlags: |
43 SDL_WINDOWPOS_CENTERED | 43 SDL_WINDOWPOS_CENTERED |
44 SDL_WINDOW_OPENGL | 44 SDL_WINDOW_OPENGL |
45 SDL_WINDOW_SHOWN | |
46 SDL_WINDOW_RESIZABLE | 45 SDL_WINDOW_RESIZABLE |
47 | 46 |
48 ctypedef struct SDL_Window: | 47 ctypedef struct SDL_Window: |
49 pass | 48 pass |
50 | 49 |
190 int TTF_Init() | 189 int TTF_Init() |
191 void TTF_Quit() | 190 void TTF_Quit() |
192 TTF_Font *TTF_OpenFont(const char *filename, int ptsize) | 191 TTF_Font *TTF_OpenFont(const char *filename, int ptsize) |
193 void TTF_CloseFont(TTF_Font *font) | 192 void TTF_CloseFont(TTF_Font *font) |
194 SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color fg) | 193 SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color fg) |
194 | |
195 | |
196 cdef extern from "SDL_blendmode.h" nogil: | |
197 ctypedef enum SDL_BlendMode: | |
198 SDL_BLENDMODE_NONE | |
199 SDL_BLENDMODE_BLEND | |
200 SDL_BLENDMODE_ADD | |
201 SDL_BLENDMODE_MOD | |
202 | |
203 | |
204 cdef extern from "SDL_render.h" nogil: | |
205 ctypedef struct SDL_Renderer: | |
206 pass | |
207 | |
208 ctypedef struct SDL_Texture: | |
209 pass | |
210 | |
211 ctypedef struct SDL_Point: | |
212 pass | |
213 | |
214 SDL_Renderer *SDL_CreateRenderer(SDL_Window *window, int index, Uint32 flags) | |
215 void SDL_RenderPresent(SDL_Renderer *renderer) | |
216 int SDL_RenderClear(SDL_Renderer *renderer) | |
217 SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *surface) | |
218 int SDL_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect) | |
219 int SDL_RenderCopyEx(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect, double angle, const SDL_Point *center, bint flip) | |
220 int SDL_RenderSetClipRect(SDL_Renderer *renderer, const SDL_Rect *rect) | |
221 int SDL_RenderSetViewport(SDL_Renderer *renderer, const SDL_Rect *rect) | |
222 | |
223 int SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b) | |
224 int SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha) | |
225 int SDL_SetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode blend_mode) |