diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 15:17:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 15:38:03 -0300 |
| commit | d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da (patch) | |
| tree | 3843d3a78e1442393d4d5f32d067d9f9523c948c /src/gui/gui.zig | |
| parent | b4faa9da0530be0391a7cc61eb4ea1e4cdbfa038 (diff) | |
| download | pardes-d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da.tar.gz pardes-d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da.zip | |
build: sketchbook's devices by name: the window asks sketchbook (in build/gui.zig only) for its `c`, translated from gui.zig's header over pardes's own SDL (-Dc-header, -Dc-include), its `dev` (the executor, cells, presentation, glyph atlas and scene format: src/gui/gui.zig takes the five from it) and the named font.c, compiled against pardes's FreeType and HarfBuzz as before; every sb.path into sketchbook, the copied shader list, compileGlsl and -Dgpu-only are gone; -Dprebuilt-shaders is passed through; the GPU addons take gpu_scene from the same instance (addons.gpu gets the window's dependency, null off the window, after it); the Cells and Atlas tests are sketchbook's own now (5 fewer here). gui: frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 1582; the 5 moved, the base's 8 failures), tui-has-no-sdl; tui: core-test 811/950 (139 skipped), configures with ../sketchbook moved aside
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 5ffaa649..f78678c0 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1,8 +1,9 @@ -const SketchGpu = @import("sketch_gpu"); -const Cells = @import("gpu_cells"); // sketchbook's dev/draw/Cells.zig -const Atlas = @import("font_atlas"); // sketchbook's dev/text/Atlas.zig -const Present = @import("gpu_present"); // sketchbook's dev/draw/Present.zig -const GpuScene = @import("gpu_scene"); +const dev = @import("dev"); // sketchbook's devices +const SketchGpu = dev.Executor; +const Cells = dev.Cells; +const Atlas = dev.Atlas; +const Present = dev.Present; +const GpuScene = dev.scene; const filesystem = @import("../fs.zig"); const std = @import("std"); const builtin = @import("builtin"); |
