mach-core moves back into the main repository
Helps hexops/mach#1165 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
38f296ecce
commit
f29b775b27
7 changed files with 472 additions and 40 deletions
|
|
@ -1,7 +1,8 @@
|
|||
const core = @import("mach-core");
|
||||
const gpu = @import("mach-core").gpu;
|
||||
const std = @import("std");
|
||||
const ecs = @import("../main.zig").ecs;
|
||||
const mach = @import("../main.zig");
|
||||
const core = mach.core;
|
||||
const gpu = mach.core.gpu;
|
||||
const ecs = mach.ecs;
|
||||
|
||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
const allocator = gpa.allocator();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach-core");
|
||||
const gpu = core.gpu;
|
||||
const ecs = @import("../main.zig").ecs;
|
||||
const Engine = @import("../engine.zig").Engine;
|
||||
const mach = @import("../main.zig");
|
||||
const core = mach.core;
|
||||
const gpu = mach.core.gpu;
|
||||
const ecs = mach.ecs;
|
||||
const Engine = mach.Engine;
|
||||
|
||||
const math = mach.math;
|
||||
const vec2 = math.vec2;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const build_options = @import("build-options");
|
|||
const builtin = @import("builtin");
|
||||
|
||||
// Core
|
||||
pub const core = if (build_options.want_core) @import("mach-core") else struct {};
|
||||
pub const core = if (build_options.want_core) @import("core/main.zig") else struct {};
|
||||
pub const Timer = if (build_options.want_core) core.Timer else struct {};
|
||||
pub const gpu = if (build_options.want_core) core.gpu else struct {};
|
||||
pub const sysjs = if (build_options.want_core) @import("mach-sysjs") else struct {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue