Table of Contents

HudResetState

void HudResetState()

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 SetHudSize and 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();
}