Replies: 2 comments
-
Nevermind, I guess I just had to add
I had taken it out because I'm not actually accessing the canvas from within the C++. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should make sure you add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm importing the Emscripten js, but when I try
Module.onRuntimeInitialized = () => { /*code here*/ };
I get "Module not defined"That code does occur after the import of the js file.
Here's all my JavaScript:
Oh, and here's my command line for compiling:
em++ /mnt/d/visual\ studio\ projects/scribbles3/em.cpp -s WASM=1 -s -o em.js -sALLOW_MEMORY_GROWTH -Oz
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions