File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 44 .paths = .{"." },
55 .dependencies = .{
66 .@"phantom.i18n" = .{
7- .url = "https://github.com/PhantomUIx/i18n/archive/941945e730a50520dfbc44825612b71b86e9a6f7 .tar.gz" ,
8- .hash = "12202590d5272332603b3f472931f1c2a3e2a25ed5e3981f8f3e00271fa545634be3 " ,
7+ .url = "https://github.com/PhantomUIx/i18n/archive/5bc9dae58128b9979da6caa2add832b547ec8dfd .tar.gz" ,
8+ .hash = "1220d2ec9243d536336636288e99d77388d6c80a3dbf6cea02a35e7f6feaf37235cf " ,
99 },
1010 .@"phantom.display.uefi" = .{
11- .url = "https://github.com/PhantomUIx/display-uefi/archive/01c93ae609c6764fdd2eda1db0fbe6ebc8d7349d .tar.gz" ,
12- .hash = "12204a36b9c591f605575b456bb979721b004fb4834cb2a4841a012ec31bb8c7f8eb " ,
11+ .url = "https://github.com/PhantomUIx/display-uefi/archive/85551ee93471d862e1e9954631eec10b95013e07 .tar.gz" ,
12+ .hash = "12200ecf708dfaf4345cc3cd29b6ea98b7678e8d6ba6125bd564249f2110341988b4 " ,
1313 },
1414 .phantom = .{
15- .url = "https://github.com/PhantomUIx/core/archive/a7cdd480decac2812e66301b7494137f6a3d5d03 .tar.gz" ,
16- .hash = "12206e7a39b76d73547275140e0df9e27191a27f237685955c404471cbf3c79e1cdb " ,
15+ .url = "https://github.com/PhantomUIx/core/archive/2646d5559bc49ed09f08562b0a72737b9d9eb412 .tar.gz" ,
16+ .hash = "12205969c3bc047bea9d42ddd7c0486da4a519430b1dc2e02f190debb1afdefae465 " ,
1717 },
1818 .vizops = .{
1919 .url = "https://github.com/MidstallSoftware/vizops/archive/7a1b49fea05d75cabc920c247eba0274e91bf967.tar.gz" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ const options = @import("options");
33const phantom = @import ("phantom" );
44const vizops = @import ("vizops" );
55
6- pub fn main () ! void {
7- const alloc = std . heap . page_allocator ;
6+ const displayBackendType : phantom.display.BackendType = @enumFromInt ( @intFromEnum ( options . display_backend ));
7+ const displayBackend = phantom . display . Backend ( displayBackendType ) ;
88
9- const displayBackendType = comptime std . meta . stringToEnum ( phantom .display .BackendType , @tagName ( options .display_backend )) .? ;
10- const displayBackend = phantom .display .Backend (displayBackendType );
9+ const sceneBackendType : phantom.scene .BackendType = @enumFromInt ( @intFromEnum ( options .scene_backend )) ;
10+ const sceneBackend = phantom .scene .Backend (sceneBackendType );
1111
12- const sceneBackendType = comptime std .meta .stringToEnum (phantom .scene .BackendType , @tagName (options .scene_backend )).? ;
12+ pub fn main () ! void {
13+ const alloc = std .heap .page_allocator ;
1314
1415 var display = displayBackend .Display .init (alloc , .compositor );
1516 defer display .deinit ();
@@ -44,7 +45,7 @@ pub fn main() !void {
4445 surface .deinit ();
4546 }
4647
47- const scene = try surface .createScene (sceneBackendType );
48+ const scene = try surface .createScene (@enumFromInt ( @intFromEnum ( sceneBackendType )) );
4849 _ = scene ;
4950 // TODO: render something to the scene
5051}
You can’t perform that action at this time.
0 commit comments