modules are global

This commit is contained in:
David Allemang
2024-07-09 13:57:08 -04:00
parent 1269018e61
commit 4d3d4e6ee6
6 changed files with 48 additions and 63 deletions

View File

@@ -2,22 +2,22 @@ const std = @import("std");
const Window = @import("Window.zig");
const Self = @This();
// isolate all the vulkan code through this path
// except for imgui code
// const au = @import("au.zig");
pub fn init(alloc: std.mem.Allocator, window: *Window) !Self {
pub fn init(alloc: std.mem.Allocator) !void {
_ = alloc;
_ = window;
std.debug.print("Init Render\n", .{});
// todo check vulkan supported
// todo create window surface
return .{};
}
pub fn deinit(self: *Self) void {
_ = self;
pub fn frame() void {
std.debug.print("frame\n", .{ });
}
pub fn deinit() void {}