-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsWindowFullscreen
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if window is currently fullscreen
None.
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitWindow 800, 600, "Fullscreen Demo"
while not raylib.WindowShouldClose
if raylib.IsKeyPressed(raylib.KEY_F) then raylib.ToggleFullscreen
raylib.BeginDrawing
raylib.ClearBackground color.white
if raylib.IsWindowFullscreen then
raylib.DrawText "Fullscreen ON (F to toggle)", 10, 10, 20, color.green
else
raylib.DrawText "Fullscreen OFF (F to toggle)", 10, 10, 20, color.black
end if
raylib.EndDrawing
end while
raylib.CloseWindow