Returns TRUE (1) once the user has asked the program to close - the window's close button, or the system closing it.
Takes no parameters.
Returns TRUE (1) if a quit has been requested, FALSE (0) otherwise.
System
Parameters & Returns
Parameters
This function takes no parameters.
Returns
Int
Quick Summary
Returns TRUE (1) once the user has asked the program to close - the window's close button, or the system closing it.
Takes no parameters.
Returns TRUE (1) if a quit has been requested, FALSE (0) otherwise.
Technical Exegesis...
Returns TRUE (1) once the user has asked the program to close - the window's close button, or the system closing it. Takes no parameters. Returns TRUE (1) if a quit has been requested, FALSE (0) otherwise.
Desktop (Vulkan) target and Linux only. Normally the close button ends the program at once, as it does on Desktop (DX12). A program that calls sysQuitRequested (even once) gets the close as a request instead, so its main loop can end and the code after it can run - to save, say - before b2dEnd.
Returns TRUE (1) once the user has asked the program to close - the window's close button, or the system closing it. Takes no parameters. Returns TRUE (1) if a quit has been requested, FALSE (0) otherwise.
Desktop (Vulkan) target and Linux only. Normally the close button ends the program at once, as it does on Desktop (DX12). A program that calls sysQuitRequested (even once) gets the close as a request instead, so its main loop can end and the code after it can run - to save, say - before b2dEnd. Poll it in the main loop, after sysUpdateEvents. See Desktop (Vulkan).
Example
Example.bam
Import "BBRuntimeVulkan.decls"
b2dGraphics(640, 480, 1)
While sysQuitRequested() = 0
sysUpdateEvents()
b2dCls()
; ... draw here ...
b2dFlip()
Wend; ... save here ...
b2dEnd()