Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,34 @@ programming and build a game engine.
* <https://www.gamemath.com/>

![image](https://github.com/btipling/foundations/assets/249641/fa81b05d-8297-4008-ab14-8f7df06f385b)

## Open Source Dependencies

I am grateful for to the open source community for creating tools and libraries that anyone can use for free. This project depends on the following open source projects:

### Glad

The MIT License (MIT)
Copyright (c) 2013-2022 David Herberth

### Dear Imgui

The MIT License (MIT)
Copyright (c) 2014-2024 Omar Cornut

### cimgui

The MIT License (MIT)
Copyright (c) 2015 Stephan Dilly

### GLFW

GLFW 3.5 - <www.glfw.org>
A library for OpenGL, window and input
Copyright (c) 2002-2006 Marcus Geelnard
Copyright (c) 2006-2018 Camilla Löwy <[email protected]>

### STB

MIT License
Copyright (c) 2017 Sean Barrett
7 changes: 7 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub fn build(b: *std.Build) void {
exe.addIncludePath(b.path("libs/cimgui/generator/output"));
exe.addIncludePath(b.path("libs/cimgui/imgui"));
exe.addIncludePath(b.path("libs/cimgui/imgui/backends"));
exe.addIncludePath(b.path("libs/stb/include"));
exe.linkLibC();
exe.linkLibCpp();
switch (target.result.os.tag) {
Expand Down Expand Up @@ -78,6 +79,12 @@ pub fn build(b: *std.Build) void {
},
.flags = &(cflags.* ++ .{"-DIMGUI_IMPL_API=extern \"C\" __declspec(dllexport)"}),
});
exe.addCSourceFiles(.{
.files = &.{
"libs/stb/src/stb_perlin.c",
},
.flags = cflags,
});
},
else => @panic("this project only builds on windows"),
}
Expand Down
Loading