feat(gfx): integrate wasi-gfx for loading and presenting GUI
CI / test (push) Successful in 24s

This commit is contained in:
Antigravity committed 2026-11-25 02:54:03 +00:00
1 parent ccb809bdc3
commit 7caadb3f7f
59 files changed
+7495 -16

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package moonplasma:gfx@0.2.0;
/// Host-agnostic GUI loader world backed by wasi-gfx surfaces & frame-buffers.
world gui-loader {
import wasi-gfx:surface/surface@0.2.0;
import wasi-gfx:surface/surface-frame-buffer@0.2.0;
import wasi-gfx:frame-buffer/frame-buffer@0.2.0;
export init-gui: func(width: u32, height: u32);
export render-frame: func();
export on-resize: func(width: u32, height: u32);
export on-pointer: func(kind: u8, x: f64, y: f64);
export on-key: func(pressed: bool, text: string);
}