|
OpenBF1942-Plus
Refractor 1, rebuilt from scratch
|
#include "hud.h"#include <algorithm>#include <cctype>#include <cmath>#include <cstdlib>#include <sstream>#include <stdexcept>Namespaces | |
| namespace | obf |
Functions | |
| std::map< std::string, std::string > | obf::lexicon_parse (const std::vector< uint8_t > &data, int lang) |
| Font | obf::font_parse (const std::string &text) |
| float | obf::text_width (const Font &f, const std::string &s, float scale) |
| void | obf::hud_text (const Font &f, const std::string &s, float x, float y, float scale, const float rgba[4], std::vector< HudQuad > &out) |
| std::vector< HudQuad > | obf::hud_layout (const Font &f, const HudInfo &in, int w, int h) |