Open Source Tomb Raider Engine
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

FontImGui.h 704B

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