Font interface.
More...
#include <Font.h>
|
static void | shutdown () |
|
static int | initialize (std::string font="") |
|
static std::string | getFontName () |
|
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) |
|
static void | drawTextCentered (unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int width, std::string s) |
|
static void | setShowFontBox (bool s) |
|
static bool | getShowFontBox () |
|
|
static void | drawFontBox (unsigned int x, unsigned int y, unsigned int w, unsigned int h) |
|
Font interface.
Definition at line 16 of file Font.h.
int Font::initialize |
( |
std::string |
font = "" | ) |
|
|
static |
static std::string Font::getFontName |
( |
| ) |
|
|
inlinestatic |
unsigned int Font::widthText |
( |
float |
scale, |
|
|
std::string |
s |
|
) |
| |
|
static |
unsigned int Font::heightText |
( |
float |
scale, |
|
|
unsigned int |
maxWidth, |
|
|
std::string |
s |
|
) |
| |
|
static |
void Font::drawText |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
float |
scale, |
|
|
glm::vec4 |
color, |
|
|
std::string |
s |
|
) |
| |
|
static |
void Font::drawTextWrapped |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
float |
scale, |
|
|
glm::vec4 |
color, |
|
|
unsigned int |
maxWidth, |
|
|
std::string |
s |
|
) |
| |
|
static |
void Font::drawTextCentered |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
float |
scale, |
|
|
glm::vec4 |
color, |
|
|
unsigned int |
width, |
|
|
std::string |
s |
|
) |
| |
|
static |
static void Font::setShowFontBox |
( |
bool |
s | ) |
|
|
inlinestatic |
static bool Font::getShowFontBox |
( |
| ) |
|
|
inlinestatic |
void Font::drawFontBox |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
|
staticprivate |
bool Font::isInit = false |
|
staticprivate |
std::string Font::fontName |
|
staticprivate |
bool Font::showFontBox = false |
|
staticprivate |
The documentation for this class was generated from the following files: