Mercurial > touhou
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 | ec327e58b477 |
comparison
equal
deleted
inserted
replaced
455:6864a38b2413 | 456:cae1ae9de430 |
---|---|
72 | 72 |
73 cdef void play(self, int channel, int loops) nogil | 73 cdef void play(self, int channel, int loops) nogil |
74 cdef void set_volume(self, float volume) nogil | 74 cdef void set_volume(self, float volume) nogil |
75 | 75 |
76 | 76 |
77 cdef class Font: | |
78 cdef TTF_Font *font | |
79 | |
80 cdef Surface render(self, unicode text) | |
81 | |
82 | |
77 cdef void init(Uint32 flags) except * | 83 cdef void init(Uint32 flags) except * |
78 cdef void img_init(Uint32 flags) except * | 84 cdef void img_init(Uint32 flags) except * |
79 cdef void mix_init(int flags) except * | 85 cdef void mix_init(int flags) except * |
86 cdef void ttf_init() except * | |
80 | 87 |
81 IF UNAME_SYSNAME == "Windows": | 88 IF UNAME_SYSNAME == "Windows": |
82 cdef void set_main_ready() | 89 cdef void set_main_ready() |
83 | 90 |
84 cdef void quit() nogil | 91 cdef void quit() nogil |
85 cdef void img_quit() nogil | 92 cdef void img_quit() nogil |
86 cdef void mix_quit() nogil | 93 cdef void mix_quit() nogil |
94 cdef void ttf_quit() nogil | |
87 cdef void gl_set_attribute(SDL_GLattr attr, int value) except * | 95 cdef void gl_set_attribute(SDL_GLattr attr, int value) except * |
88 cdef list poll_events() | 96 cdef list poll_events() |
89 cdef const Uint8* get_keyboard_state() nogil | 97 cdef const Uint8* get_keyboard_state() nogil |
90 cdef Surface load_png(file_) | 98 cdef Surface load_png(file_) |
91 cdef Surface create_rgb_surface(int width, int height, int depth, Uint32 rmask=*, Uint32 gmask=*, Uint32 bmask=*, Uint32 amask=*) | 99 cdef Surface create_rgb_surface(int width, int height, int depth, Uint32 rmask=*, Uint32 gmask=*, Uint32 bmask=*, Uint32 amask=*) |