OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
FontImGui.h
Go to the documentation of this file.
1 
8 #ifndef _FONT_IMGUI_H_
9 #define _FONT_IMGUI_H_
10 
11 #include <string>
12 
16 class FontImGui {
17  public:
18  static unsigned int widthText(float scale, std::string s);
19 
20  static unsigned int heightText(float scale, unsigned int maxWidth, std::string s);
21 
22  static void drawText(unsigned int x, unsigned int y, float scale,
23  glm::vec4 color, std::string s);
24 
25  static void drawTextWrapped(unsigned int x, unsigned int y, float scale,
26  glm::vec4 color, unsigned int maxWidth, std::string s);
27 };
28 
29 #endif
30 
static void drawTextWrapped(unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int maxWidth, std::string s)
Definition: FontImGui.cpp:50
static void drawText(unsigned int x, unsigned int y, float scale, glm::vec4 color, std::string s)
Definition: FontImGui.cpp:25
static unsigned int widthText(float scale, std::string s)
Definition: FontImGui.cpp:17
static const float scale
Definition: Sprite.cpp:15
Default Font implementation.
Definition: FontImGui.h:16
static unsigned int heightText(float scale, unsigned int maxWidth, std::string s)
Definition: FontImGui.cpp:42