void draw_line(float x1, float y1, float x2, float y2);
void draw_stipple_line(float x1, float y1, float x2, float y2);
void draw_text(float x, float y, char *msg, int align = 0, int digit = 0);
- float text_width(char *str) const;
void draw_circle(float x1, float y1, float r) const;
void draw_bullet(float, float, float);
}
-float HUD::Item::text_width(char *str) const
-{
- assert(_hud->_font_renderer);
- float r, l;
- _hud->_font->getBBox(str, _hud->_font_size, 0, &l, &r, 0, 0);
- return r - l;
-}
-
-
s = n->getStringValue("tick-length"); // "variable", "constant"
_tick_length = strcmp(s, "constant") ? VARIABLE : CONSTANT;
-
- float top;
- _hud->_font->getBBox("0", _hud->_font_size, 0.0, 0, 0, 0, &top);
}