summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-04 00:57:06 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commite36e946f9a56c4ab1d10cef3aace20fe7d274dfa (patch)
treebaccd0be04b9b901bb74b4f3647bdb531c8dd450 /build.zig
parentf3f0e27372d8cf111269dde674d4581cf4cb0c41 (diff)
downloadpardes-e36e946f9a56c4ab1d10cef3aace20fe7d274dfa.tar.gz
pardes-e36e946f9a56c4ab1d10cef3aace20fe7d274dfa.zip
touch debug overlay: multi-touch circles with trails, finger event handling, 4x larger, fade trails, SDL GPU + WebGL overlay shaders, touch-action:none in HTML, --debug-overlay flag, pinch event dispatch for all SDL backends
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index b3ae8e37..8b1b6a3b 100644
--- a/build.zig
+++ b/build.zig
@@ -250,6 +250,8 @@ pub fn build(b: *std.Build) void {
if (is_emscripten) {
ui_mod.addAnonymousImport("ui.vert.es.glsl", .{ .root_source_file = b.path("shaders/ui.vert.es.glsl") });
ui_mod.addAnonymousImport("ui.frag.es.glsl", .{ .root_source_file = b.path("shaders/ui.frag.es.glsl") });
+ ui_mod.addAnonymousImport("overlay.vert.es.glsl", .{ .root_source_file = b.path("shaders/overlay.vert.es.glsl") });
+ ui_mod.addAnonymousImport("overlay.frag.es.glsl", .{ .root_source_file = b.path("shaders/overlay.frag.es.glsl") });
} else {
// GLSL -> SPIR-V at build time, embedded into ui_sdl.zig via @embedFile.
ui_mod.addAnonymousImport("ui.vert.spv", .{
@@ -258,6 +260,12 @@ pub fn build(b: *std.Build) void {
ui_mod.addAnonymousImport("ui.frag.spv", .{
.root_source_file = compileGlsl(b, "shaders/ui.frag.glsl", "fragment", "ui.frag.spv"),
});
+ ui_mod.addAnonymousImport("overlay.vert.spv", .{
+ .root_source_file = compileGlsl(b, "shaders/overlay.vert.glsl", "vertex", "overlay.vert.spv"),
+ });
+ ui_mod.addAnonymousImport("overlay.frag.spv", .{
+ .root_source_file = compileGlsl(b, "shaders/overlay.frag.glsl", "fragment", "overlay.frag.spv"),
+ });
}
}
@@ -431,6 +439,7 @@ pub fn build(b: *std.Build) void {
\\ image-rendering: crisp-edges; image-rendering: pixelated;
\\ -ms-interpolation-mode: nearest-neighbor;
\\ transform: translateZ(0); backface-visibility: hidden; }
+ \\ touch-action: none; }
\\ </style>
\\</head>
\\<body>