Make apps for ztOS

ztOS apps are written in C against zrnSDK v2. It gives you the controls of Windows Phone 8.1: pages, a Pivot and a Hub, buttons, lists, pickers, app bars and dialogs. C++ apps include the same headers.

This site documents SDK v2

SDK v1 (zui_*, zrn render, four languages) is gone. Nothing here works with v1, and v1 code does not build against v2. What is not committed yet is on Coming next.

git clone https://github.com/Zerone-Laboratories/zrn-sdk
cd zrn-sdk/examples/helloworld
cmake --preset host-debug
cmake --build --preset host-debug
./build/host-debug/helloworld          # inside a Wayland session
pivot drawn by zrnui in the Dark theme
Dark
pivot drawn by zrnui in the Light theme
Light

How the code on this site was checked

Each element's snippet is put into a small C program and compiled against zrnui: the pinned commit plus the uncommitted working tree (app bar measurements, Segoe WP lookup), with -Wall -Wextra -Werror. The program draws it with zrnui's GLES2 renderer (Z_RENDERER_GPU), offscreen through Mesa, once in Dark and once in Light, with the default Cobalt accent, in Segoe WP from a Windows Phone 8.1 firmware (read at render time; the font is Microsoft's and is not served by this site). The page is 360 points wide, as ztOS lays an app out on the S9, and shown here at that size.

The animation clips are recorded the same way: Zroot_tick in steps of 1/60 s, each frame read back. Nothing is drawn by hand. The generator and its report are in this site's repository.

Checked against zrn-sdk commit 71a5ace (SDK v2). Pictures and clips are drawn by zrnui's GLES2 renderer, offscreen, from code that compiled, against the zrn-sdk working tree on top of that commit (it adds the app bar measured on a Windows Phone 8.1 phone and the Segoe WP font lookup), in Segoe WP. Source and proof.