ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudpushstate

This is an old revision of the document!


Table of Contents

HudPushState

Description

Saves current state to state stack.

If the stack is full, a ProgramError is raised.

Do not forget to call HudPopState. Otherwise the stack may run out of space.

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();
}
functions/hudpushstate.1492447062.txt.gz · Last modified: 2017/04/17 19:37 by korshun