29 lines
620 B
Zig
29 lines
620 B
Zig
const std = @import("std");
|
|
const nu = @import("nu.zig");
|
|
|
|
const Bus = @import("nu/Bus.zig");
|
|
const Render = @import("nu/Render.zig");
|
|
const ImGui = @import("nu/ImGui.zig");
|
|
|
|
pub fn init(alloc: std.mem.Allocator) !void {
|
|
_ = alloc;
|
|
}
|
|
|
|
pub fn connect() !void {
|
|
try ImGui.hooks.frame.register(nu_imgui_frame);
|
|
}
|
|
|
|
pub fn deinit() void {}
|
|
|
|
// pub fn nu_frame() void {}
|
|
|
|
// pub fn nu_events(events: []const Bus.Event) void {
|
|
// std.debug.print("{any}\n", .{events});
|
|
// }
|
|
|
|
// pub fn nu_render_present(_: Render.au.CommandBufferProxy) void {}
|
|
|
|
pub fn nu_imgui_frame() void {
|
|
ImGui.igShowMetricsWindow(null);
|
|
}
|