Additional fixes and todo plans
This commit is contained in:
15
src/main.zig
15
src/main.zig
@@ -4,11 +4,26 @@ const rl = @import("raylib");
|
||||
const c = @import("constants.zig");
|
||||
const Simulator = @import("simulator.zig").Simulator;
|
||||
|
||||
// TODO PLANS
|
||||
// Implement that roads, nodes in managers will be stored as pointers (allocated in heap)
|
||||
// So when appending causes the list to relocate, nothing will have to change
|
||||
// since the allocated nodes/roads will remain where they were
|
||||
// Additionally add more robust error and test handling
|
||||
|
||||
pub fn main(init: std.process.Init) !void {
|
||||
const allocator = init.gpa;
|
||||
|
||||
rl.setConfigFlags(.{
|
||||
.msaa_4x_hint = true,
|
||||
.window_highdpi = true,
|
||||
});
|
||||
rl.initWindow(c.WIDTH, c.HEIGHT, "Base Road Network");
|
||||
defer rl.closeWindow();
|
||||
|
||||
const monitor = 0;
|
||||
rl.setWindowMonitor(monitor);
|
||||
rl.setTargetFPS(rl.getMonitorRefreshRate(monitor));
|
||||
|
||||
var sim: Simulator = .init(allocator);
|
||||
defer sim.deinit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user