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 704B

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