font.h 413 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. *** :: Font ::
  3. ***
  4. *** Fonts created with Bitmap Font Generator
  5. ***
  6. *** http://www.angelcode.com/products/bmfont/
  7. ***
  8. **/
  9. #ifndef font_h
  10. #define font_h
  11. #include "cengine.h"
  12. #include "casset.h"
  13. typedef struct {
  14. asset_hndl texture_map;
  15. int width;
  16. int height;
  17. vec2* locations;
  18. vec2* sizes;
  19. vec2* offsets;
  20. } font;
  21. font* font_load_file(char* filename);
  22. void font_delete(font* font);
  23. #endif