Can emsripten compile down to Canvas-based Js instead of WebGL?
- by Sebastian Scholle
I understand that emscripten compiles down LLVM to JS and it converts OpenGL Calls to WebGL. Thats a fairly simple translation.
Is there a way to tell emscripten to use some other graphics Library ( for example Pixi JS ) for its rendering code translations?
Is the compiled JS code easy to update or would it be better to merge in your own Graphics API that handles WebGL/Canvas calls. IE: can we use a C++ Graphics Wrapper Library that when compiles to JS, will simply plug into our own JS Graphics Wrapper Library? Im assuming YES, but has anyone tried this? And if So, what would be your technique, as my C++ skills are basic.