Commit Graph
23 Commits
Author SHA1 Message Date
waozi 66f1ac7546 compat: let apps drop the audio forwarders from the generated wrappers
The generated raylib wrappers forward every public symbol, so an app
that builds raylib without the audio module (SUPPORT_MODULE_RAUDIO=0)
fails to link on the audio forwarders. KRYON_COMPAT_AUDIO=0 now skips
the audio section (the last module section in raylib.h) when generating
the wrappers; the null backend keeps the complete stub set.
2026-08-18 16:24:23 -03:00
waozi 15020a797b runtime: enforce one app instance by default 2026-08-17 21:46:45 -03:00
waozi 6ace0ff5f3 runtime: pace event-driven UI frames 2026-08-17 21:39:40 -03:00
waozi b1da39b72c screenshots: ES2-safe capture — armed EndDrawing reads pre-swap
OpenGL ES 2 has no glReadBuffer, so the front-buffer override was a
no-op and post-swap reads return cleared buffers on Mesa's software
drivers. With INBE_SHOT_ARM=1 the front-end EndDrawing wrapper
flushes the render batch, glReadPixels the completed back buffer
BEFORE the swap, and LoadImageFromScreen returns that frame (flipped,
alpha flattened). Backend symbols are weak so null/canvas links stay
clean.
2026-08-17 04:56:30 -03:00
waozi e39d9365d4 LoadImageFromScreen: front-end override reading the front buffer
raylib's stock readback runs after SwapBuffers and returns a cleared/
transparent back buffer on software GL (llvmpipe under headless X and
CI xvfb) — every screenshot export came out ~100% transparent. The
override reads GL_FRONT (the presented frame), flips, and flattens
alpha so the ARGB window visual can't hollow out external captures
either.
2026-08-17 02:17:52 -03:00
waozi 831edacc8d TakeScreenshot: use absolute paths as-is
raylib's TakeScreenshot prefixes CORE.Storage.basePath unconditionally;
on the SDL backend that is the binary's directory, so an absolute output
path arrived as "<bindir>//abs/path" and the export failed silently.
TakeScreenshot is now a front-end surface symbol (src/backend/kry_screenshot.c):
absolute paths are used as-is, relative paths keep resolving against the
application directory like before. Pixels come from LoadImageFromScreen(),
so no backend internals are needed and the null backend stays a stub.
2026-08-16 22:53:01 -03:00
waozi ccec103ebc k2b: report call kinds the KRB vocabulary cannot express
A cartridge that comes out thin (inbe's pet screen: an egg widget,
locale text, Paragraphs) was silently missing everything k2b cannot
lower. The builder now tracks dropped call kinds per file and prints
one stderr line: 'k2b: <file>: N call kinds not in KRB: Paragraph x2
draw_egg x1 ...' - pet_screen.kry reports seven, which is the honest
content of the gap.
2026-08-16 07:52:09 -05:00
waozi 2276b7372f kry_sfs: the live engine as a synthetic file system + real input injection
Everything kryon owns is now addressable and interactable through one
file-tree surface: /info, /theme tokens, /input (mouse position, buttons,
keys, text, wheel - readable and writable), and /widgets (the live
ui_inspect tree with per-widget kind/text/bounds/source plus a tap that
clicks for real).

Input injection is new underneath: kry_inject keeps a pure-state event
queue whose edges derive at each pump (raylib-style previous-vs-current),
and the generated backend wrappers consult it before platform input, so
injected events reach app code that queries GetMousePosition or
IsMouseButtonReleased directly. KryonInjectPump runs from
UpdateKeyPlatformState; injected mouse positions serve for one frame
(two for taps) so the real mouse keeps working. KryTTap/KryTType/
KryTKey in kryon_test.h now inject for real instead of recording
strings.

ui_inspect gained SetUIInspectVisible so the SFS can record the widget
tree without arming the click-stealing overlay. tests/sfs_test.c covers
listing/reading every namespace, edge semantics, tap-to-UIHandleClick,
and the KryT helpers; wired into make test (suite green).
2026-08-15 11:24:10 -05:00
waozi 56cb7a8c15 document and enforce canonical app api 2026-08-09 12:53:52 -03:00
waozi 0d360a0160 clean kryon app api 2026-08-09 12:44:52 -03:00
waozi 8a0a09bc03 Fix Kryon IDE preview input and source selection 2026-07-27 12:09:55 -03:00
waozi 137f6ac413 Rename Flint runtime to Kryon 2026-07-20 11:25:19 -03:00
waozi 2123449504 Add Kryon widget inspection lifecycle 2026-07-20 10:56:27 -03:00
waozi e6b58a78b9 Apply UI colors from themes 2026-07-19 09:35:45 -03:00
waozi a462581680 Add Clay and remove fontchop 2026-07-18 07:29:00 -03:00
waozi d606232116 Use fontchop submodule for UI fonts 2026-07-15 23:36:23 -03:00
waozi 1ee815a636 Test raylib compatibility surface 2026-07-12 17:25:03 -03:00
waozi 1fed3f13fc Handle OTF font offsets in otfchop 2026-07-12 00:50:38 -03:00
waozi 06d0d82ec3 Generate Raylib backend wrappers 2026-07-10 23:51:06 -03:00
waozi 4d8203135e Expose Raylib API through Flint 2026-07-10 23:32:08 -03:00
waozi d981aff430 Rename public API to raylib-style names 2026-07-09 15:42:55 -03:00
waozi 398b6daa21 Add native FreeBSD support 2026-07-09 13:25:23 -03:00
waozi 4f417cb90a Bundle font chopping tooling and fix examples 2026-06-24 20:01:29 -03:00