easy comptime hooks

This commit is contained in:
2024-07-09 23:35:40 -04:00
parent cb8684cbf3
commit cc1a9fdabc
5 changed files with 69 additions and 68 deletions

View File

@@ -1,8 +1,24 @@
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 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);
}