add test file for message box
This commit is contained in:
parent
af6d9551ef
commit
cc8498feba
23
src/test_box.zig
Normal file
23
src/test_box.zig
Normal 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,
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue