Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <ctype.h>
#include "gfxlib.h"
#include "cmd/unit_generic.h"
#include "hud.h"
#include "lin_time.h"
#include "file_main.h"
#include "gfx/aux_texture.h"
#include "vs_globals.h"
#include "config_xml.h"
#include "xml_support.h"
#include "cmd/base.h"
#include "gldrv/gl_globals.h"
Go to the source code of this file.
Functions | |
static bool | isInside () |
const std::string & | getStringFont (bool &changed, bool force_inside=false, bool whatinside=false) |
const std::string & | getStringFontForHeight (bool &changed) |
void * | getFont (bool forceinside=false, bool whichinside=false) |
float | getFontHeight () |
static unsigned int * | CreateLists () |
static unsigned char | HexToChar (char a) |
static unsigned char | TwoCharToByte (char a, char b) |
static float | TwoCharToFloat (char a, char b) |
void | DrawSquare (float left, float right, float top, float bot) |
float | charWidth (char c, float myFontMetrics) |
bool | doNewLine (string::const_iterator begin, string::const_iterator end, float cur_pos, float end_pos, float metrics, bool last_row) |
Definition at line 193 of file hud.cpp.
References getFont(), VegaConfig::getVariable(), XMLSupport::parse_bool(), and vs_config.
Referenced by PaintText::addFragment(), doNewLine(), and PaintText::parseFragmentsWithWordBreak().
|
static |
Definition at line 136 of file hud.cpp.
References getFont(), VegaConfig::getVariable(), GFXCreateList(), GFXEndList(), i, XMLSupport::parse_bool(), and vs_config.
bool doNewLine | ( | string::const_iterator | begin, |
string::const_iterator | end, | ||
float | cur_pos, | ||
float | end_pos, | ||
float | metrics, | ||
bool | last_row | ||
) |
Definition at line 179 of file hud.cpp.
References GFXBegin(), GFXEnd(), GFXQUAD, and GFXVertex3f().
Definition at line 68 of file hud.cpp.
References changed, and getStringFont().
Referenced by charWidth(), and CreateLists().
float getFontHeight | ( | ) |
Definition at line 93 of file hud.cpp.
References changed, g_game, getStringFontForHeight(), and game_data_t::y_resolution.
Referenced by BaseUtil::GetTextHeight().
const std::string& getStringFont | ( | bool & | changed, |
bool | force_inside = false , |
||
bool | whatinside = false |
||
) |
Definition at line 42 of file hud.cpp.
References VegaConfig::getVariable(), isInside(), and vs_config.
Referenced by getFont().
const std::string& getStringFontForHeight | ( | bool & | changed) |
Definition at line 56 of file hud.cpp.
References VegaConfig::getVariable(), isInside(), and vs_config.
Referenced by getFontHeight().
|
static |
|
static |
Definition at line 36 of file hud.cpp.
References BaseInterface::CurrentBase.
Referenced by getStringFont(), and getStringFontForHeight().
|
static |
|
static |
Definition at line 174 of file hud.cpp.
References TwoCharToByte().