#graphics #webassembly #gui #macos #engine #wasm #chassis

pax-chassis-macos

Platform-specific chassis allowing Pax cartridges to be executed as native macOS apps

48 releases (6 breaking)

0.10.7 Oct 20, 2023
0.9.9 Oct 16, 2023
0.6.8 Jul 21, 2023
0.0.1 Sep 13, 2022

#824 in Graphics APIs

Download history 130/week @ 2023-07-17 32/week @ 2023-07-24 17/week @ 2023-07-31 32/week @ 2023-08-07 15/week @ 2023-08-14 33/week @ 2023-08-28 138/week @ 2023-09-04 30/week @ 2023-09-11 103/week @ 2023-09-18 33/week @ 2023-09-25 80/week @ 2023-10-02 174/week @ 2023-10-09 260/week @ 2023-10-16 122/week @ 2023-10-23 84/week @ 2023-10-30

694 downloads per month

MIT/Apache

365KB
8K SLoC

Rust 4K SLoC // 0.1% comments Swift 3.5K SLoC // 0.1% comments

pax-chassis-macos

Handles: - 2D rendering on macOS via CoreGraphics - passing tick events (a la rAF; see NSViewRepresentable) - Managing native user input (e.g. mouse, keyboard, camera, microphone, also form control events like 'click' on a button) - Rendering native text based off of commands from engine - Rendering native form controls based off of commands from engine

This directory also includes:

interface

Simple macOS app for developing Pax projects.
Also usable as a template for packaging full-window Pax apps for macOS

Handles:

  • Mounting pax-chassis-macos + cartridge to a simple Mac app, delegating full window rendering to Pax.
  • Debug mode + LLDB support for debugging Pax projects on macOS
  • Production mode, suitable for packaging full-window Pax apps for end-users

Dependencies

~6–10MB
~187K SLoC