zig-gamedev project

Hi Guys,

I would like to introduce my zig-gamedev project: https://github.com/michal-z/zig-gamedev

It is a collection of sample applications and libraries written in Zig language and following "handmade" spirit. I'm using DirectX 12 for rendering so this is Windows 10+ project.

Thanks!

screenshot.png


Edited by michal-z on

Having some problems trying to build this.

PS C:\Users\Ionut\source\repos> git lfs install
Git LFS initialized.
PS C:\Users\Ionut\source\repos> git clone https://github.com/michal-z/zig-gamedev.git
Cloning into 'zig-gamedev'...
remote: Enumerating objects: 4412, done.
remote: Counting objects: 100% (2960/2960), done.
remote: Compressing objects: 100% (1992/1992), done.
remote: Total 4412 (delta 1648), reused 2197 (delta 911), pack-reused 1452 eceiving objects:  99% (4368/4412), 7.71 MiB | 1.89 MiB/s
Receiving objects: 100% (4412/4412), 8.91 MiB | 2.05 MiB/s, done.
Resolving deltas: 100% (2435/2435), done.
Filtering content: 100% (114/114), 199.22 MiB | 4.80 MiB/s, done.
PS C:\Users\Ionut\source\repos> cd .\zig-gamedev\
PS C:\Users\Ionut\source\repos\zig-gamedev> .\build_all_samples.bat
--- audio_playback_test --- output directory is "samples\audio_playback_test\zig-out\bin"
.\build.zig:34:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- bullet_physics_test --- output directory is "samples\bullet_physics_test\zig-out\bin"
.\build.zig:34:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- directml_convolution_test --- output directory is "samples\directml_convolution_test\zig-out\bin"
.\build.zig:38:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- physically_based_rendering --- output directory is "samples\physically_based_rendering\zig-out\bin"
.\build.zig:34:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- simple3d --- output directory is "samples\simple3d\zig-out\bin"
.\build.zig:11:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- simple_raytracer --- output directory is "samples\simple_raytracer\zig-out\bin"
.\build.zig:34:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- textured_quad --- output directory is "samples\textured_quad\zig-out\bin"
.\build.zig:11:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- triangle --- output directory is "samples\triangle\zig-out\bin"
.\build.zig:11:55: error: no member named 'custom' in union 'std.build.InstallDir'
        .{ .source_dir = "content", .install_dir = .{ .custom = "" }, .install_subdir = "bin/content" },
                                                      ^
--- vector_graphics_test --- output directory is "samples\vector_graphics_test\zig-out\bin"
.\build.zig:30:26: error: no member named 'addOptions' in struct 'std.build.Builder'
    const exe_options = b.addOptions();
                         ^
PS C:\Users\Ionut\source\repos\zig-gamedev> zig version
0.8.1