====== HudPopState ======
{{tag>hud_library}}
''void HudPopState()''
[[:HUD Library|This is a HUD Library function.]]
===== Description =====
Restores saved [[:HUD library state]] from the [[:HUD Library#state_stack|state stack]] and removes it from the stack.
If the stack is empty, a [[ProgramError]] is emitted.
===== Examples =====
HudPushState();
// Change state
HudPopState(); // Back to saved state.
This function is not affected by current HUD Library state and doesn't overwrite it:
function DrawSomething(void)
{
HudPushState();
HudResetState();
...
HudPopState();
}