You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
630 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Font class
  7. // --------------
  8. //
  9. #if !defined __DH_FONT_H__
  10. #define __DH_FONT_H__
  11. #include "asset.h"
  12. class FontData;
  13. class Font : public Asset
  14. {
  15. public:
  16. Font(char const *path);
  17. ~Font();
  18. protected:
  19. /* Inherited from Asset */
  20. virtual Group GetGroup();
  21. virtual void TickRender(float delta_time);
  22. public:
  23. /* New methods */
  24. char const *GetName();
  25. void Print(int x, int y, char const *str);
  26. void PrintBold(int x, int y, char const *str);
  27. private:
  28. FontData *data;
  29. };
  30. #endif // __DH_FONT_H__