====== HudResetState ======
{{tag>hud_library}}
''void HudResetState()''
[[:HUD Library|This is a HUD Library function.]]
===== Description =====
Resets all [[:HUD library state]] to defaults. Should be used at the beginning of any drawing to clear any state left by previously run scripts, just like [[zdoom>SetHudSize]] and [[zdoom>SetFont]] are used for that purpose.
===== Examples =====
HudResetState();
HudSetPoint(320.0, 240.0);
HudDrawText(1, "Hello");
This function is not affected by current HUD Library state and doesn't overwrite it:
function DrawSomething(void)
{
HudPushState();
HudResetState();
...
HudPopState();
}