Parameters & Returns
Parameters
This function takes no parameters.
Returns
Quick Summary
For a window opened with IGI_WINDOW_CLOSEBOX: tells you the user clicked its X.
Returns: 0 on the frame the window's X was clicked, otherwise 1.
Technical Exegesis...
For a window opened with IGI_WINDOW_CLOSEBOX: tells you the user clicked its X. IGI doesn't hide the window itself - stop calling igiBeginEx for it, as in the example.
Call it every frame, between drawing your game and b2dFlip. See the IGI guide.
Returns: 0 on the frame the window's X was clicked, otherwise 1.
Example
If showHelp Then
igiBeginEx("Help", -1, -1, 0, 0, IGI_WINDOW_CLOSEBOX)
If Not igiWindowIsOpen() Then showHelp = False
igiText("Arrow keys move")
igiEnd()
EndIf