2
1
Fork 0
mirror of https://git.sr.ht/~kikoodx/kble synced 2021-03-14 11:35:18 +01:00
kble/src/main.zig

24 lines
518 B
Zig
Raw Normal View History

2021-01-24 19:22:48 +01:00
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);
}
}