move au into nu/render

This commit is contained in:
David Allemang
2024-07-09 15:17:26 -04:00
parent 1613b90ac5
commit 4f9a154176
10 changed files with 53 additions and 517 deletions

View File

@@ -6,17 +6,17 @@ const std = @import("std");
const builtin = @import("builtin");
const vk = @import("vk");
const ctx = @import("Render/Context.zig");
const au = @import("Render/au.zig");
pub const Options = struct {
app_name: []const u8 = "nu-au-app",
app_name: [*:0]const u8 = "nu-au-app",
app_version: struct {
variant: u3 = 0,
major: u7 = 0,
minor: u10 = 0,
patch: u12 = 0,
} = .{},
engine_name: []const u8 = "nu-au",
engine_name: [*:0]const u8 = "nu-au",
engine_version: struct {
variant: u3 = 0,
major: u7 = 0,
@@ -29,12 +29,12 @@ pub const Options = struct {
pub fn init(alloc: std.mem.Allocator) !void {
// todo make ctx not globals
try ctx.init(alloc);
errdefer ctx.deinit();
try au.init(alloc);
errdefer au.deinit();
}
pub fn frame() void {}
pub fn deinit() void {
ctx.deinit();
au.deinit();
}