Files
wadamesh/web/platform/WebPlatform.h
T
Kaj SchittecatandClaude Opus 5.5 91fc03fdc0 web: one board boot (board.cpp) for two front ends; panel dirty rectangle
board.cpp owns the board globals and src/main.cpp's setup()/loop() order;
host_main.cpp keeps only the SDL window, event pump and scripted tour, so the
browser front end reuses the boot unchanged. WebDisplay tracks the changed
rectangle for the canvas upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 12:55:59 +02:00

14 lines
625 B
C

#pragma once
// The web board's boot + loop, shared by both front ends:
// host_main.cpp native: an SDL2 window (or --headless) + the scripted tour
// web_main.cpp Emscripten: a <canvas> in a page, driven by the page's JS
// board.cpp owns the board globals and runs src/main.cpp's setup()/loop() order.
#include <stdint.h>
// setup(): storage, the mesh stand-in on the demo backend, the UI.
void wadaBoardBegin();
// One iteration of src/main.cpp's loop(): UI first, then the mesh.
void wadaBoardStep();
// The deliberate power-off paths: flush what the device flushes (chat history is lazy).
void wadaBoardFlush();