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.
 
 
 

41 lines
635 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 "entity.h"
  12. class FontData;
  13. class Font : public Entity
  14. {
  15. public:
  16. Font(char const *path);
  17. ~Font();
  18. protected:
  19. /* Inherited from Entity */
  20. virtual char const *GetName();
  21. virtual Group GetGroup();
  22. virtual void TickDraw(float deltams);
  23. public:
  24. /* New methods */
  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__