Open Source Tomb Raider Engine
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.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*!
  2. * \file include/FontSDL.h
  3. * \brief SDL Font implementation
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _FONT_SDL_H_
  8. #define _FONT_SDL_H_
  9. #include "SDL_ttf.h"
  10. #include "Font.h"
  11. /*!
  12. * \brief SDL Font implementation
  13. */
  14. class FontSDL : public Font {
  15. public:
  16. /*!
  17. * \brief Constructs an object of FontSDL
  18. */
  19. FontSDL();
  20. /*!
  21. * \brief Deconstructs an object of FontSDL
  22. */
  23. virtual ~FontSDL();
  24. virtual int initialize();
  25. virtual void writeString(FontString &s);
  26. private:
  27. TTF_Font *mFont;
  28. unsigned int mFontTexture;
  29. };
  30. #endif