Skip to content

raylib.WindowShouldClose

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if application should close NOTE: By default, if KEY_ESCAPE pressed or window close icon clicked

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

raylib.InitWindow 800, 600, "Demo"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground raylib.RAYWHITE
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally