Expand description
C-compatible, panic-contained access to the portable Konjure runtime.
No Rust pointer is exposed as an ABI handle. A handle names a registry slot and generation, so use-after-dispose and stale handles are deterministic errors rather than undefined behavior.
Structs§
Enums§
Constants§
Functions§
- kj_
abi_ version - Returns the ABI major version implemented by this library.
- kj_
runtime_ ⚠compile - Compiles DSL source and places a generation-safe runtime handle in
out_handle. - kj_
runtime_ ⚠dispatch_ json - Dispatches a serialized
Eventand serializes its receipt as UTF-8 JSON. - kj_
runtime_ dispose - Disposes a runtime. A second disposal, or any stale copied handle, returns
InvalidHandle. - kj_
runtime_ ⚠from_ document_ json - Creates a runtime from a serialized
SceneDocumentJSON value. - kj_
runtime_ meshes_ json - Serializes all prepared meshes as
{ "entries": [{ "entity", "topology", "mesh" }] }JSON. - kj_
runtime_ sample_ json - Samples a deterministic frame and serializes it as UTF-8 JSON.
- kj_
runtime_ scene_ json - Serializes the authoritative scene document as UTF-8 JSON.