Compare commits
2 Commits
3274692631
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b388b1e08e | |||
| 4f62d5eb4c |
10
build.zig
10
build.zig
@@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
// to our consumers. We must give it a name because a Zig package can expose
|
// to our consumers. We must give it a name because a Zig package can expose
|
||||||
// multiple modules and consumers will need to be able to specify which
|
// multiple modules and consumers will need to be able to specify which
|
||||||
// module they want to access.
|
// module they want to access.
|
||||||
// const mod = b.addModule("base_road_network", .{
|
// const mod = b.addModule("traffic-simulator", .{
|
||||||
// // The root source file is the "entry point" of this module. Users of
|
// // The root source file is the "entry point" of this module. Users of
|
||||||
// // this module will only be able to access public declarations contained
|
// // this module will only be able to access public declarations contained
|
||||||
// // in this file, which means that if you have declarations that you
|
// // in this file, which means that if you have declarations that you
|
||||||
@@ -68,7 +68,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
// If neither case applies to you, feel free to delete the declaration you
|
// If neither case applies to you, feel free to delete the declaration you
|
||||||
// don't need and to put everything under a single module.
|
// don't need and to put everything under a single module.
|
||||||
const exe = b.addExecutable(.{
|
const exe = b.addExecutable(.{
|
||||||
.name = "base_road_network",
|
.name = "traffic-simulator",
|
||||||
.use_llvm = true,
|
.use_llvm = true,
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
// b.createModule defines a new module just like b.addModule but,
|
// b.createModule defines a new module just like b.addModule but,
|
||||||
@@ -84,12 +84,12 @@ pub fn build(b: *std.Build) void {
|
|||||||
// List of modules available for import in source files part of the
|
// List of modules available for import in source files part of the
|
||||||
// root module.
|
// root module.
|
||||||
.imports = &.{
|
.imports = &.{
|
||||||
// Here "base_road_network" is the name you will use in your source code to
|
// Here "traffic-simulator" is the name you will use in your source code to
|
||||||
// import this module (e.g. `@import("base_road_network")`). The name is
|
// import this module (e.g. `@import("traffic-simulator")`). The name is
|
||||||
// repeated because you are allowed to rename your imports, which
|
// repeated because you are allowed to rename your imports, which
|
||||||
// can be extremely useful in case of collisions (which can happen
|
// can be extremely useful in case of collisions (which can happen
|
||||||
// importing modules from different packages).
|
// importing modules from different packages).
|
||||||
// .{ .name = "base_road_network", .module = mod },
|
// .{ .name = "traffic-simulator", .module = mod },
|
||||||
|
|
||||||
// Raylib import
|
// Raylib import
|
||||||
.{ .name = "raylib", .module = raylib },
|
.{ .name = "raylib", .module = raylib },
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
// It is redundant to include "zig" in this name because it is already
|
// It is redundant to include "zig" in this name because it is already
|
||||||
// within the Zig package namespace.
|
// within the Zig package namespace.
|
||||||
.name = .base_road_network,
|
.name = .traffic_simulator,
|
||||||
// This is a [Semantic Version](https://semver.org/).
|
// This is a [Semantic Version](https://semver.org/).
|
||||||
// In a future version of Zig it will be used for package deduplication.
|
// In a future version of Zig it will be used for package deduplication.
|
||||||
.version = "0.0.0",
|
.version = "0.0.0",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
// original project's identity. Thus it is recommended to leave the comment
|
// original project's identity. Thus it is recommended to leave the comment
|
||||||
// on the following line intact, so that it shows up in code reviews that
|
// on the following line intact, so that it shows up in code reviews that
|
||||||
// modify the field.
|
// modify the field.
|
||||||
.fingerprint = 0x8da3e26c9def0629, // Changing this has security and trust implications.
|
.fingerprint = 0xf441f200e5d3277c, // Changing this has security and trust implications.
|
||||||
// Tracks the earliest Zig version that the package considers to be a
|
// Tracks the earliest Zig version that the package considers to be a
|
||||||
// supported use case.
|
// supported use case.
|
||||||
.minimum_zig_version = "0.16.0",
|
.minimum_zig_version = "0.16.0",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ pub fn main(init: std.process.Init) !void {
|
|||||||
.msaa_4x_hint = true,
|
.msaa_4x_hint = true,
|
||||||
.window_highdpi = true,
|
.window_highdpi = true,
|
||||||
});
|
});
|
||||||
rl.initWindow(c.WIDTH, c.HEIGHT, "Base Road Network");
|
rl.initWindow(c.WIDTH, c.HEIGHT, "Traffic Simulator");
|
||||||
defer rl.closeWindow();
|
defer rl.closeWindow();
|
||||||
|
|
||||||
const monitor = 0;
|
const monitor = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user