Open Source Tomb Raider Engine
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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