I have seen a few questions pertaining to embedding JS in a c++ program or calling js functions from c++. I was wondering if it was possible to call javascript functions that have graphics from a c++ program, specifically a GLUT program. I have heard of V8 and other JS engines but I wasn't sure if they were able to display graphics on the screen of a c++ window(like a glut, glu, or sdl window).
-
Might be a duplicate of stackoverflow.com/questions/2713289/…Timothy Gu– Timothy Gu2015-03-04 18:08:12 +00:00Commented Mar 4, 2015 at 18:08
-
This is not a duplicate. My question is specifically based around javascript graphics displayed on a c++ window.ArcaneEnforcer– ArcaneEnforcer2015-03-04 18:41:16 +00:00Commented Mar 4, 2015 at 18:41
-
I'm not sure what you aim at, or what is you list of requirements (what is allowed or not for you), since there are plenty of possibility here. - having a navigator subwindow in you c++ application - having js doing everything but graphics - having a js doing graphics on a not-web way (nodejs+package) - ... Here, somehow, you seem to want to have some part of graphics done in C++, and some part of graphics done in JS ? which doing what, split how ? (and expecting sharing a graphics context ?)Fabrice NEYRET– Fabrice NEYRET2015-10-05 16:27:12 +00:00Commented Oct 5, 2015 at 16:27
Add a comment
|