From e36e946f9a56c4ab1d10cef3aace20fe7d274dfa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 4 Jul 2026 00:57:06 -0300 Subject: 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 --- build.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build.zig') 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; } \\ \\ \\ -- cgit v1.3