examples/core: building without ECS

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-09-22 13:25:49 -07:00 committed by Emi Gutekanst
parent 2a13c07d9e
commit 0e12857154
35 changed files with 1365 additions and 4176 deletions

View file

@ -77,7 +77,7 @@ pub fn run(comptime on_each_update_fn: anytype, args_tuple: std.meta.ArgsTuple(@
pub fn init(
darwin: *Darwin,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
var surface_descriptor = gpu.Surface.Descriptor{};

View file

@ -54,7 +54,7 @@ const MISSING_FEATURES_WAYLAND = [_][]const u8{ "Changing display mode", "VSync"
pub fn init(
linux: *Linux,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
linux.allocator = options.allocator;

View file

@ -39,7 +39,7 @@ surface_descriptor: gpu.Surface.Descriptor,
pub fn init(
nul: *Null,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
_ = nul;

View file

@ -51,7 +51,7 @@ state: *Core,
// ------------------------------
pub fn init(
self: *Win32,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
self.state = core.state();

View file

@ -71,7 +71,7 @@ modifier_indices: KeyModInd,
pub fn init(
linux: *Linux,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
libwaylandclient_global = try LibWaylandClient.load();

View file

@ -67,7 +67,7 @@ surface_descriptor: *gpu.Surface.DescriptorFromXlibWindow,
pub fn init(
linux: *Linux,
core: *Core.Mod,
core: *Core,
options: InitOptions,
) !void {
// TODO(core): return errors.NotSupported if not supported