#include <mod_sim_hud.hh>
Public Types | |
| enum | eLod { eLod_DISABLED, eLod_LOW, eLod_HIGH, eLod_DEFAULT = eLod_HIGH } |
Public Member Functions | |
| void | Start (void) |
| void | Enable (bool enable=true) |
| void | CycleColors (void) |
Private Member Functions | |
| Hud (void) | |
| ~Hud () | |
| void | InitVectorFonts (void) |
| void | Draw (void) |
| void | DrawOutline (void) |
| void | DrawSpeedIndicator (void) |
| void | DrawAltitudeIndicator (void) |
| void | DrawThrottleIndicator (void) |
| void | DrawStall (void) |
| void | DrawTargetBoxes (void) |
| void | DrawTargetBox (game::CraftActor &target, const Vector2 &targetPos2D) |
| void | DrawFriendsEnemies (void) |
| void | Print (const Vector2 &pos, const char *text) |
Private Attributes | |
| bool | mEnabled |
| whether to draw HUD | |
| vector< VectorFont > | mVectorFonts |
| HUD fonts. | |
| vector< RGBA > | mColors |
| to cycle HUD colors for readability | |
| WidthHeight< int > | mWH |
| window width/height | |
| fp | mAltSpeedHeight |
| height of alt/speed ladders in pixels | |
Friends | |
| class | Global |
| class | ModuleSimGui |
Classes | |
| class | VectorFont |
| enum mod_sim::Hud::eLod |
| mod_sim::Hud::Hud | ( | void | ) | [private] |
ctor/dtor.
| mod_sim::Hud::~Hud | ( | ) | [private] |
| void mod_sim::Hud::InitVectorFonts | ( | void | ) | [private] |
Init vector fonts. Omitted chars will be printed as a space.
| void mod_sim::Hud::Draw | ( | void | ) | [private] |
Draw HUD. Called by ModuleSimGui::Draw() so that Hud will be drawn after everything else.
| void mod_sim::Hud::DrawOutline | ( | void | ) | [private] |
Draw decorative outlines of HUD.
| void mod_sim::Hud::DrawSpeedIndicator | ( | void | ) | [private] |
Draw HUD speed indicator.
| void mod_sim::Hud::DrawAltitudeIndicator | ( | void | ) | [private] |
Draw HUD altitude indicator.
| void mod_sim::Hud::DrawThrottleIndicator | ( | void | ) | [private] |
Draw HUD throttle indicator. This is draw as a filled box.
| void mod_sim::Hud::DrawStall | ( | void | ) | [private] |
Print STALLING.
| void mod_sim::Hud::DrawTargetBoxes | ( | void | ) | [private] |
Draw target boxes (plural).
| void mod_sim::Hud::DrawTargetBox | ( | game::CraftActor & | target, | |
| const Vector2 & | targetPos2D | |||
| ) | [private] |
| void mod_sim::Hud::DrawFriendsEnemies | ( | void | ) | [private] |
Print count of friends/foes.
| void mod_sim::Hud::Print | ( | const Vector2 & | pos, | |
| const char * | text | |||
| ) | [private] |
| void mod_sim::Hud::Start | ( | void | ) |
Module starts HUD.
| void mod_sim::Hud::Enable | ( | bool | enable = true |
) |
| void mod_sim::Hud::CycleColors | ( | void | ) |
To let user cycle HUD colors for visibility.
friend class Global [friend] |
friend class ModuleSimGui [friend] |
bool mod_sim::Hud::mEnabled [private] |
whether to draw HUD
vector<VectorFont> mod_sim::Hud::mVectorFonts [private] |
HUD fonts.
vector<RGBA> mod_sim::Hud::mColors [private] |
to cycle HUD colors for readability
WidthHeight<int> mod_sim::Hud::mWH [private] |
window width/height
fp mod_sim::Hud::mAltSpeedHeight [private] |
height of alt/speed ladders in pixels
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:31 2007