orca/samples/zig-sample
Reuben Dunnington 49213353fc
zig bindings: namespace clock/canvas functions
2023-09-29 23:42:10 -04:00
..
data wip zig orca bindings 2023-09-29 20:13:38 -04:00
src zig bindings: namespace clock/canvas functions 2023-09-29 23:42:10 -04:00
.gitignore rename calc-zig to zig-sample 2023-09-29 20:13:38 -04:00
README.md fleshing out oc_str* zig bindings 2023-09-29 20:14:51 -04:00
build.zig zig-sample: fix build.zig to use correct cpu feature set 2023-09-29 20:13:38 -04:00
icon.png rename calc-zig to zig-sample 2023-09-29 20:13:38 -04:00

README.md

Build and run

Zig version 0.11.0 or greater is required for this sample. To build and run:

orca dev build-runtime
zig build run

These two commands build the runtime - the native host executable - and the sample as a loadable wasm library, then runs it. To only build the sample without running it, use zig build bundle.

Warning

Zig bindings for Orca are in-progress and experimental. You may encounter bugs since not all the bound APIs have been tested extensively - this sample is currently the only code doing so! Additionally, not all APIs have zig coverage yet, notably:

  • oc_ui
  • gles As more APIs get tested, there is a possibility of breaking changes. Please report any bugs you find on the Handmade discord in the #orca channel.