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.

FontImGui.h 669B

12345678910111213141516171819202122232425262728
  1. /*!
  2. * \file include/FontImGui.h
  3. * \brief Default Font implementation
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _FONT_IMGUI_H_
  8. #define _FONT_IMGUI_H_
  9. /*!
  10. * \brief Default Font implementation
  11. */
  12. class FontImGui {
  13. public:
  14. static unsigned int widthText(float scale, std::string s);
  15. static unsigned int heightText(float scale, unsigned int maxWidth, std::string s);
  16. static void drawText(unsigned int x, unsigned int y, float scale,
  17. const unsigned char color[4], std::string s);
  18. static void drawTextWrapped(unsigned int x, unsigned int y, float scale,
  19. const unsigned char color[4], unsigned int maxWidth, std::string s);
  20. };
  21. #endif