mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
21 lines
385 B
Zig
21 lines
385 B
Zig
const std = @import("std");
|
|
const c = @import("c.zig");
|
|
const imgui = @import("main.zig");
|
|
const Allocator = std.mem.Allocator;
|
|
|
|
pub fn newFrame() void {
|
|
c.igNewFrame();
|
|
}
|
|
|
|
pub fn endFrame() void {
|
|
c.igEndFrame();
|
|
}
|
|
|
|
pub fn render() void {
|
|
c.igRender();
|
|
}
|
|
|
|
pub fn showDemoWindow(open: ?*bool) void {
|
|
c.igShowDemoWindow(@ptrCast([*c]bool, if (open) |v| v else null));
|
|
}
|