Can emsripten compile down to Canvas-based Js instead of WebGL?
Posted
by
Sebastian Scholle
on Programmers
See other posts from Programmers
or by Sebastian Scholle
Published on 2014-08-22T09:02:10Z
Indexed on
2014/08/22
10:26 UTC
Read the original article
Hit count: 202
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.
© Programmers or respective owner