examples: add ported two-cubes example (#228)
This commit is contained in:
parent
f96bbb453e
commit
3fb59a1e34
6 changed files with 324 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ pub fn build(b: *std.build.Builder) void {
|
|||
.{ .name = "triangle" },
|
||||
.{ .name = "boids" },
|
||||
.{ .name = "rotating-cube", .packages = &[_]Pkg{Packages.zmath} },
|
||||
.{ .name = "two-cubes", .packages = &[_]Pkg{Packages.zmath} },
|
||||
}) |example| {
|
||||
const example_exe = b.addExecutable("example-" ++ example.name, "examples/" ++ example.name ++ "/main.zig");
|
||||
example_exe.setTarget(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue