ghostty/pkg/imgui/core.zig
Mitchell Hashimoto f29393bca6 Imgui (#20)
* vendor/cimgui

* Add a "dev mode" window which for now is just imgui demo
2022-10-16 16:20:08 -07:00

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));
}