textmap.h
上传用户:xk288cn
上传日期:2007-05-28
资源大小:4876k
文件大小:1k
- #ifndef TEXTMAPDEF
- #define TEXTMAPDEF
- #define LETTER_INDEX 1
- typedef struct texchardesc {
- float movex; /* advance */
- int haveimage;
- float llx, lly; /* geometry box */
- float urx, ury;
- float tllx, tlly; /* texture box */
- float turx, tury;
- float data[3 * 8];
- } texchardesc;
- typedef struct texfnt {
- short charmin, charmax;
- short nchars;
- float pixhigh;
- texchardesc *chars;
- short rasxsize, rasysize;
- unsigned short *rasdata;
- } texfnt;
- texfnt *readtexfont(char *name);
- float texstrwidth(char *str);
- int texfntinit(char *file);
- void texfntstroke(char *s, float xoffset, float yoffset);
- #endif