runtime hooks
This commit is contained in:
@@ -33,17 +33,20 @@ pub fn main() !void {
|
||||
defer _ = gpa.detectLeaks();
|
||||
const alloc = gpa.allocator();
|
||||
|
||||
nu.init(alloc);
|
||||
defer nu.deinit();
|
||||
|
||||
try nu.Window.init(alloc);
|
||||
defer nu.Window.deinit();
|
||||
|
||||
try nu.Render.init(alloc);
|
||||
defer nu.Render.deinit();
|
||||
|
||||
try nu.ImGui.init();
|
||||
try nu.ImGui.init(alloc);
|
||||
defer nu.ImGui.deinit();
|
||||
|
||||
try App.init(alloc);
|
||||
defer App.deinit();
|
||||
|
||||
try nu.run();
|
||||
try nu.run(alloc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user