← Documentation Home

ResetDrawState

Category: Images and Rendering

Back to System Functions


Signature

ResetDrawState()

Returns

Void

Description

Returns drawing to the main screen, clears its clip, resets offset and rotation, restores white draw and text colors with top-left text alignment, and restores alpha blending with linear scaling.

Saved stack entries are retained, so a later PopDrawState can still restore a state pushed before the reset.

Example

ResetDrawState DrawFilledRect 0, 0, ScreenWidth(), ScreenHeight()