Classes | |
| class | Conf |
| Module configuration. More... | |
| class | Font |
| Font parameters. More... | |
| class | FontMap |
| Font map. More... | |
| class | Hud |
| HUD. More... | |
| class | HudBox |
| Draws a 2D box. More... | |
| class | HudObject |
| Base class for HUD objects. More... | |
| class | HudText |
| Defines a string of text to be displayed in HUD. More... | |
Namespaces | |
| namespace | defs |
| namespace | global |
Enumerations | |
| enum | { TYPESIG_HUD_BOX = (uint('h')<<24) | (uint('d')<<16) | (uint('b')<<8) | uint('x'), TYPESIG_HUD_OBJECT = (uint('h')<<24) | (uint('d')<<16) | (uint('o')<<8) | uint('b'), TYPESIG_HUD_TEXT = (uint('h')<<24) | (uint('d')<<16) | (uint('s')<<8) | uint('t') } |
| Type signatures. More... | |
Functions | |
| ostream & | operator<< (ostream &strm, const Conf &conf) |
| INLINE Conf & | GetConf (void) |
| INTERN string | ComputeFontPathName (const string &fontName) |
| INTERN const osg::Vec4f | HUD_TEXT_COLOR (0.8f, 1.0f, 0.8f, HUD_TEXT_COLOR_ALPHA) |
| INTERN const Milliseconds | HUD_TEXT_ANIMATION_FLIP_MILLISECONDS (2000) |
| void | Init (const base::InitArgs &initArgs) |
| void | Start (void) |
Variables | |
| const fp | HUD_ORTHO_X1 = 0 |
| const fp | HUD_ORTHO_X2 = 1280 |
| const fp | HUD_ORTHO_Y1 = 0 |
| const fp | HUD_ORTHO_Y2 = 1024 |
| INTERN const fp | HUD_TEXT_COLOR_ALPHA = 1.0f |
| INTERN string hud::ComputeFontPathName | ( | const string & | fontName | ) |
Compute pathname of font (depends on configuration/installation).
| INLINE Conf& hud::GetConf | ( | void | ) |
| INTERN const Milliseconds hud::HUD_TEXT_ANIMATION_FLIP_MILLISECONDS | ( | 2000 | ) |
| INTERN const osg::Vec4f hud::HUD_TEXT_COLOR | ( | 0. | 8f, | |
| 1. | 0f, | |||
| 0. | 8f, | |||
| HUD_TEXT_COLOR_ALPHA | ||||
| ) |
| void hud::Init | ( | const base::InitArgs & | initArgs | ) |
Initialize module.
| void hud::Start | ( | void | ) |
Start module.
| const fp hud::HUD_ORTHO_X1 = 0 |
Indeed, these HUD ortho dimensions remain constant. Think of these, not as a 1280x1024 screen, but as ratios for scaling text. Because of how osg::Text functions, if these were updated with the current screen size, the text wouldn't be scaled.
| const fp hud::HUD_ORTHO_X2 = 1280 |
| const fp hud::HUD_ORTHO_Y1 = 0 |
| const fp hud::HUD_ORTHO_Y2 = 1024 |
| INTERN const fp hud::HUD_TEXT_COLOR_ALPHA = 1.0f |
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010