Skip to content

raylib.WindowShouldClose

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Check if application should close (by default, KEY_ESCAPE pressed or window close icon clicked). Always false on web

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