DarkBASIC Professional Help File

DX11 QUIT

Used to poll whether the DX11 engine has requested to be closed. This can happen for one of two reasons;

- The output window received a WM_CLOSE message (ie. the user clicked the close button of the window)
- The user pressed escape, which was enabled as a quit shortcut

When this function returns true, you should perform any necessary cleanup (the DX11 engine will clean itself up so no need to worry about that)
and call the standard DBPro END function. In other words, your main loop should run while this returns false.

Syntax

    Return Boolean = DX11 QUIT()

Parameters

    This function does not take any parameters.

Returns

true if the DX11 engine has received a request to exit or false otherwise.

See also

CORE Functions Menu
DX11 Function Categories