0#import "Basic";
1#import,file "Raylib/module.jai";
3/** jai -quiet test.jai +Autorun */
5main :: () {
6 SetTraceLogLevel(.LOG_NONE);
8 InitWindow(800, 600, "Test");
9 defer CloseWindow();
11 SetTargetFPS(60);
13 while !WindowShouldClose() {
14 BeginDrawing();
15 defer EndDrawing();
17 ClearBackground({ 42, 42, 60, 255 });
19 DrawFPS(10, 10);
20 DrawText(TextFormat("Frame Time: %f s", GetFrameTime()), 10, 30, 20, WHITE);
21 }
23}
index : raylib-jai
---