add test file for message box

zig
Fabien Freling 2022-05-03 13:53:14 +02:00
parent af6d9551ef
commit cc8498feba
1 changed files with 23 additions and 0 deletions

23
src/test_box.zig Normal file
View File

@ -0,0 +1,23 @@
const std = @import("std");
const r = @import("raylib.zig");
pub fn main() anyerror!void {
r.InitWindow(800, 450, "doggo");
defer r.CloseWindow();
while (!r.WindowShouldClose()) {
// Draw
r.BeginDrawing();
defer r.EndDrawing();
r.ClearBackground(r.RAYWHITE);
_ = r.GuiMessageBox(
r.Rectangle{ .x = 0, .y = 0, .width = 200, .height = 200 },
"Message Box Title",
"Message content",
null,
);
}
}