Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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