kble/src/main.zig

24 lines
518 B
Zig

const ray = @cImport({
@cInclude("raylib.h");
});
pub fn main() void {
const screenWidth = 640;
const screenHeight = 480;
ray.SetConfigFlags(ray.FLAG_WINDOW_RESIZABLE);
ray.InitWindow(screenWidth, screenHeight, "KBLE");
defer ray.CloseWindow();
ray.SetTargetFPS(60);
while(!ray.WindowShouldClose()) {
ray.BeginDrawing();
defer ray.EndDrawing();
ray.ClearBackground(ray.RAYWHITE);
ray.DrawText("Hello, World!", 190, 200, 20, ray.LIGHTGRAY);
}
}