Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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