Repository navigation
arigl: the GL Ariadne runtime, in a window or the terminal - #726
Merged
Merged
Conversation
arigl runs a .ari document over cvcGL: in a real window with a GL context (ImGui over the VTK scene), or with --terminal in the terminal, its scene rendered offscreen behind FTXUI or tvision widgets. It is the GL sibling of `ari`. It takes the same general flags (host_cli.h) plus --terminal; everything after the document path is the document's (doc_args.h). - src/arigl: run | snapshot | check. A snapshot runs on a fixed clock: an offscreen window frame to --png, or a terminal frame as text. OS signals go to on_signal: in both modes, and one the document does not handle exits 128 + N. Dual-mode CMake like src/ari (CVC_BUILD_ARIGL, with CVC_BUILD_CVCGL), plus ctest coverage of the binary. - cvcGL bundles.h: the registration sets the example hosts each copied: register_gl_basics, register_streaming, register_window_widgets, and register_conference for the conference fold-in. - AriRuntime: post_signal, post_input, an input pump that runs before the drain, a fixed scene clock, and the app_runtime() / backend() / realized() accessors. Like ariadne_hello, it now checks the scene-node customs before realizing and applies the scene's background. - SceneAdapter::verify: a scene-node customs check AppRuntime::load runs before realize (default: nothing to check). - Docs: the three runtimes (ari, arigl, arisrv); §16.6's pixel-mirror mode is dropped as superseded; a known gap: auto-sized ImGui windows draw as a stub (pre-existing).
transfix
added a commit
that referenced
this pull request
Oct 27, 2026
The SDK bundle builds only the cvc and cvcGL targets, then installs everything configured. Since #726 the in-tree build also configures arigl (CVC_BUILD_ARIGL defaults ON with cvcGL), so cmake --install failed on the missing bin/arigl.js: v3.7.1's tag run (40467963445) stopped there and published nothing. Turn it off as CVC_BUILD_ARI already is; the browser arigl page ships with the gh-pages gallery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ariglis the GL Ariadne runtime. It runs a.aridocument over cvcGL either in a real window with a GL context (ImGui over the VTK scene) or, with--terminal, in the terminal, its scene rendered offscreen behind FTXUI or tvision widgets. It is the second of the runtimes Joe named:ari(core),arigl(GL) andarisrv(headless server, from the conference work).It builds on #721 (merged), which gave documents their own command line and the shared runtime flags.
The runtime
host_cli.h, from ariadne: a document owns its command line (argv + args:), shared runtime flags #721), plus--terminal. Everything after the document path belongs to the document (args:/argv).ari:--graphics auto|kitty|sixel|color|monoand--cell-sizein terminal mode, and--image NAME=FILEin both modes.on_signal:in both modes. In window mode no GL host did this before. A signal the document doesn't handle exits 128 + N.ui.docs.ariin both modes, the same asari, so a document's state paths don't change between runtimes.ariadne_hello,ariadne_stream,ariadne_conferenceandariadne_terminalare untouched. Joe's rule is that demos are added and never replaced, andariglis meant to replace them only once it does everything they do.Library pieces
inc/cvc/gl/ariadne/bundles.hnames the registration sets the example hosts each copied:register_gl_basics: cvcGL's node types and presets, plus thelabeledwidget;register_streaming: the stream, gl-bind-stream and media verbs, and the stream node;register_window_widgets: ImGuistream_view;register_conference(app, backend), which the conference session (ariadne: multi-party video conference — SFU relay, real A/V, MJPG, N-party, UX toggles, Windows #719) will extend when it moves its wiring intoarigl.AriRuntimegains:post_signalandpost_input;app_runtime(),backend()andrealized();ariadne_helloparity: the scene-node customs check before realizing, and the scene's background.SceneAdapter::verify: an optional customs check thatAppRuntime::loadruns beforerealize. It does nothing by default.Docs
docs/ARIADNE.md§9: the three runtimes and theariglCLI.arigl --terminal, which draws the scene behind real terminal widgets.pos:but nosize:) draws as a collapsed stub inariadne_helloandariglalike (hello.ari's Controls,terminal_tour.ari's Status and Layout). A sized window draws fine. It's a separate fix.Verification
arigl_terminal_snapshot;arigl_document_args(--agents 77reaches the document);arigl_rejects_bad_document_args(exits 2);arigl_window_snapshot;arigl_check.cvcgl_*tests pass locally.arigl checkloads every shipped.ariwith exit 0.arigl --terminal --pngwrites the same file byte for byte asariadne_terminal --png.ariadne_hello --pngon the same document (ariglalso draws the ImGui overlay;ariadne_hello's capture hides it).terminal_tour.ari --agents 99shows Agents 99;on_signaltakes the first SIGUSR1 and quits on the second (exit 0); an unhandled SIGTERM exits 143.--terminalwith FTXUI renders the scene behind the Scene window, orbits on a drag and exits 0 on Ctrl-C;--terminal --backend tvisionshows the native desktop and exits 143 on SIGTERM.Not in this PR
ariglcvcpkg package. It comes after the platform-coverage work lands, because both editpublish-cvcpkg.yml.stream_viewin the terminal (planned next).