how to pass a struct to emscripten::val::call function #17971
Unanswered
aharondavid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
if we want to replace that JS code by c++, how can we pass the {willReadFrequently: true} value:
JS:
const ctx = canvas.getContext('2d', {willReadFrequently: true});
C++:
emscripten::val.call<emscripten::val>("getContext", std::string("2d"),_**what should be here?**_);
Beta Was this translation helpful? Give feedback.
All reactions