diff options
| -rw-r--r-- | odin-rl-window/main.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odin-rl-window/main.odin b/odin-rl-window/main.odin index a9b9970..3a1ed9b 100644 --- a/odin-rl-window/main.odin +++ b/odin-rl-window/main.odin | |||
| @@ -5,7 +5,9 @@ import rl "vendor:raylib" | |||
| 5 | 5 | ||
| 6 | main :: proc() { | 6 | main :: proc() { |
| 7 | rl.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .WINDOW_HIGHDPI}) | 7 | rl.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .WINDOW_HIGHDPI}) |
| 8 | |||
| 8 | rl.InitWindow(1280, 720, "Raylib Window") | 9 | rl.InitWindow(1280, 720, "Raylib Window") |
| 10 | defer rl.CloseWindow() | ||
| 9 | 11 | ||
| 10 | rl.SetTargetFPS(500) | 12 | rl.SetTargetFPS(500) |
| 11 | 13 | ||
| @@ -16,6 +18,4 @@ main :: proc() { | |||
| 16 | rl.DrawFPS(rl.GetScreenWidth() - 100, 20); | 18 | rl.DrawFPS(rl.GetScreenWidth() - 100, 20); |
| 17 | rl.EndDrawing() | 19 | rl.EndDrawing() |
| 18 | } | 20 | } |
| 19 | |||
| 20 | rl.CloseWindow() | ||
| 21 | } | 21 | } |
