Skip to content

Commit

Permalink
Reorganize src
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrowland committed Jul 26, 2024
1 parent 346cdb9 commit b9debc5
Show file tree
Hide file tree
Showing 96 changed files with 7 additions and 448 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Simulations
# Basic Economies
GPU accelerated visual simulations for basic economies.
Built on [zig-gamedev](https://github.com/michal-z/zig-gamedev/).
Download from the latest release or build from source.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 6 additions & 12 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ const zgpu = @import("zgpu");
const wgpu = zgpu.wgpu;
const zgui = @import("zgui");
const zstbi = @import("zstbi");
const Random = @import("resources/random/main.zig");
const Editor = @import("resources/editor/main.zig");
const Variable = @import("resources/variable/main.zig");
//const MergeSort = @import("algorithms/mergesort/main.zig");
const Random = @import("random/main.zig");
const Editor = @import("editor/main.zig");
const Variable = @import("variable/main.zig");

const Selection = enum {
Random,
Editor,
Variable,
//MergeSort,
};
pub var selection = Selection.Variable;
pub fn selectionGui() void {
Expand Down Expand Up @@ -87,21 +85,17 @@ pub fn main() !void {
while (!quit) {
inline for (.{
.{
.file = @import("resources/random/main.zig"),
.file = @import("random/main.zig"),
.selection = Selection.Random,
},
.{
.file = @import("resources/editor/main.zig"),
.file = @import("editor/main.zig"),
.selection = Selection.Editor,
},
.{
.file = @import("resources/variable/main.zig"),
.file = @import("variable/main.zig"),
.selection = Selection.Variable,
},
//.{
// .file = @import("algorithms/mergesort/main.zig"),
// .selection = Selection.MergeSort,
//},
}) |demo| {
var state = try demo.file.init(gctx, allocator, window);
defer demo.file.deinit(&state);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b9debc5

Please sign in to comment.