OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
hud.h File Reference
#include <array>
#include <cstdint>
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  obf::Glyph
struct  obf::Font
struct  obf::HudQuad
struct  obf::MapIcon
struct  obf::HudInfo
struct  obf::HudInfo::RadioButton
struct  obf::HudInfo::VehicleWeapon

Namespaces

namespace  obf

Functions

Font obf::font_parse (const std::string &text)
std::map< std::string, std::string > obf::lexicon_parse (const std::vector< uint8_t > &data, int lang)
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)