Compare commits
No commits in common. "d2f8af619f76a919f6893d21e774245d958afcbf" and "911d13fc1c432078345ad6a99141318753cff453" have entirely different histories.
d2f8af619f
...
911d13fc1c
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,6 +1,3 @@
|
||||||
[submodule "zig/3rd-party/raylib"]
|
[submodule "zig/3rd-party/raylib"]
|
||||||
path = zig/3rd-party/raylib
|
path = zig/3rd-party/raylib
|
||||||
url = https://github.com/raysan5/raylib/
|
url = https://github.com/raysan5/raylib/
|
||||||
[submodule "zig/3rd-party/raygui"]
|
|
||||||
path = zig/3rd-party/raygui
|
|
||||||
url = https://github.com/raysan5/raygui/
|
|
||||||
|
|
|
@ -37,14 +37,9 @@
|
||||||
};
|
};
|
||||||
in mkShell {
|
in mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
sqlite
|
|
||||||
|
|
||||||
# Dev tools
|
|
||||||
just
|
just
|
||||||
vscodeCustom
|
|
||||||
|
|
||||||
# Flutter
|
|
||||||
flutter
|
flutter
|
||||||
|
vscodeCustom
|
||||||
|
|
||||||
# Linux toolchain
|
# Linux toolchain
|
||||||
clang_15
|
clang_15
|
||||||
|
@ -57,7 +52,6 @@
|
||||||
|
|
||||||
# Zig / webAssembly impl.
|
# Zig / webAssembly impl.
|
||||||
zig
|
zig
|
||||||
zls
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2
|
# see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2
|
||||||
|
|
1
zig/3rd-party/raygui
vendored
1
zig/3rd-party/raygui
vendored
|
@ -1 +0,0 @@
|
||||||
Subproject commit 85a5c104f509b183c8cc7db0d90c2ab7a2b198c8
|
|
|
@ -20,9 +20,7 @@ pub fn build(b: *std.Build) void {
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
|
|
||||||
exe.linkLibrary(raylib_dep.artifact("raylib"));
|
exe.linkLibrary(raylib_dep.artifact("raylib"));
|
||||||
exe.linkSystemLibrary("sqlite3");
|
|
||||||
|
|
||||||
// This declares intent for the executable to be installed into the
|
// This declares intent for the executable to be installed into the
|
||||||
// standard location when the user invokes the "install" step (the default
|
// standard location when the user invokes the "install" step (the default
|
||||||
|
|
|
@ -2,13 +2,6 @@ const std = @import("std");
|
||||||
const raylib = @cImport({
|
const raylib = @cImport({
|
||||||
@cInclude("raylib.h");
|
@cInclude("raylib.h");
|
||||||
});
|
});
|
||||||
const raygui = @cImport({
|
|
||||||
@cDefine("RAYGUI_IMPLEMENTATION", "1");
|
|
||||||
@cInclude("raygui.h");
|
|
||||||
});
|
|
||||||
const sqlite = @cImport({
|
|
||||||
@cInclude("sqlite3.h");
|
|
||||||
});
|
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
const screen_width = 800;
|
const screen_width = 800;
|
||||||
|
@ -21,7 +14,6 @@ pub fn main() !void {
|
||||||
|
|
||||||
raylib.ClearBackground(raylib.RAYWHITE);
|
raylib.ClearBackground(raylib.RAYWHITE);
|
||||||
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LIGHTGRAY);
|
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LIGHTGRAY);
|
||||||
if (raygui.GuiButton(.{ .x = 0, .y = 0, .width = 100, .height = 100 }, "MyButton") == 1) {}
|
|
||||||
}
|
}
|
||||||
raylib.CloseWindow();
|
raylib.CloseWindow();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue