OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | List of all members
FontImGui Class Reference

Default Font implementation. More...

#include <FontImGui.h>

Static Public Member Functions

static unsigned int widthText (float scale, std::string s)
 
static unsigned int heightText (float scale, unsigned int maxWidth, std::string s)
 
static void drawText (unsigned int x, unsigned int y, float scale, glm::vec4 color, std::string s)
 
static void drawTextWrapped (unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int maxWidth, std::string s)
 

Detailed Description

Default Font implementation.

Definition at line 16 of file FontImGui.h.

Member Function Documentation

unsigned int FontImGui::widthText ( float  scale,
std::string  s 
)
static

Definition at line 17 of file FontImGui.cpp.

unsigned int FontImGui::heightText ( float  scale,
unsigned int  maxWidth,
std::string  s 
)
static

Definition at line 42 of file FontImGui.cpp.

void FontImGui::drawText ( unsigned int  x,
unsigned int  y,
float  scale,
glm::vec4  color,
std::string  s 
)
static

Definition at line 25 of file FontImGui.cpp.

void FontImGui::drawTextWrapped ( unsigned int  x,
unsigned int  y,
float  scale,
glm::vec4  color,
unsigned int  maxWidth,
std::string  s 
)
static

Definition at line 50 of file FontImGui.cpp.


The documentation for this class was generated from the following files: