Back to index

supertuxkart  0.5+dfsg1
BMF_Api.h
Go to the documentation of this file.
00001 
00041 #ifndef __BMF_API_H
00042 #define __BMF_API_H
00043 
00044 #ifdef __cplusplus
00045 extern "C" { 
00046 #endif
00047 
00048 #include "BMF_Fonts.h"
00049 
00055 BMF_Font* BMF_GetFont(BMF_FontType font);
00056 
00063 int BMF_DrawCharacter(BMF_Font* font, char c);
00064 
00071 int BMF_DrawString(BMF_Font* font, const char* str);
00072 
00079 int BMF_GetCharacterWidth(BMF_Font* font, char c);
00080 
00087 int BMF_GetStringWidth(BMF_Font* font, char* str);
00088 
00096 void BMF_GetBoundingBox(BMF_Font* font, int *xmin_r, int *ymin_r, int *xmax_r, int *ymax_r);
00097 
00107 int BMF_GetFontTexture(BMF_Font* font);
00108 
00121 void BMF_DrawStringTexture(BMF_Font* font, char* string, float x, float y, float z);
00122 
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126 
00127 #endif /* __BMF_API_H */
00128