examples/core: building without ECS
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2a13c07d9e
commit
0e12857154
35 changed files with 1365 additions and 4176 deletions
|
|
@ -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{};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ surface_descriptor: gpu.Surface.Descriptor,
|
|||
|
||||
pub fn init(
|
||||
nul: *Null,
|
||||
core: *Core.Mod,
|
||||
core: *Core,
|
||||
options: InitOptions,
|
||||
) !void {
|
||||
_ = nul;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ state: *Core,
|
|||
// ------------------------------
|
||||
pub fn init(
|
||||
self: *Win32,
|
||||
core: *Core.Mod,
|
||||
core: *Core,
|
||||
options: InitOptions,
|
||||
) !void {
|
||||
self.state = core.state();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue