00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __MXFONT__H_
00017 #define __MXFONT__H_
00018
00019 #include"SDL.h"
00020 #include<string.h>
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026
00028 struct SDL_Font {
00030 int mx;
00032 int my;
00034 int tcolor;
00036 struct letter {
00037 int **fnt_ptr;
00038 } letters[128];
00039 };
00040
00041
00042 extern int SDL_PrintTextDepth(int *depth, struct SDL_Surface *surf, struct SDL_Font *fnt, int x, int y, Uint32 color, const char *src);
00043 extern struct SDL_Font *SDL_InitFont(const char *src);
00044 extern void SDL_FreeFont(struct SDL_Font *m);
00045 extern int SDL_PrintText(struct SDL_Surface *surf, struct SDL_Font *m, int x, int y, Uint32 color, const char *src);
00046 extern void SDL_PrintTextScaled(struct SDL_Surface *surf, struct SDL_Font *m, int x, int y, int w, int h, Uint32 color, const char *src);
00047 extern void *lock(SDL_Surface *surf, Uint8 type);
00048 extern void unlock(SDL_Surface *surf);
00049 extern void setpixel(void *buff, Uint32 x, Uint32 y, Uint32 color, Uint8 type, Uint16 pitch);
00050 extern Uint32 getpixel(SDL_Surface *surf, int x, int y, Uint8 type, Uint16 pitch, SDL_Color *c) ;
00051 int SDL_PrintTextWidth(int *depth,struct SDL_Surface *surf, struct SDL_Font *fnt, int x, int y, int width, Uint32 color, const char *src);
00052 extern int SDL_PrintTextIdle(struct SDL_Surface *surf, struct SDL_Font *fnt, int x, int y, int size_width,Uint32 color, const char *src);
00053
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057
00058 #endif
00059