5 ms·
Yup, you call a c function that calls out to JS and then make whatever dom/canvas calls you want.
by vvanders 9y ago
Yup, you call a c function that calls out to JS and then make whatever dom/canvas calls you want.
- lomnakkus 9y agoDo you happen to have a link to an implementation for wasm?
- vvanders 9y agoNot publicly, the emscripten docs covers it in pretty good detail: http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#implement-c-in-javascript http://kripken.github.io/emscripten-site/docs/porting/connec...