mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-11 22:07:37 +00:00
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>
14 lines
625 B
C
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();
|