Search code examples
c++htmlgoogle-nativeclient

How can I write an C++ HTML5 application in PNaCl without any JavaScript knowledge?


I'm a C++ programmer and I want to write an application purely in C++ and HTML5 and CSS without any knowledge of JavaScript with the help of Portable Native Client. I am not intended to learn JavaScript either. Is this possible?


Solution

  • The only way for NaCl/PNaCl C/C++ to effect the DOM is by passing messages to JavaScript (using postMessage()) and having JavaScript perform the DOM actions required.

    The only way for C/C++ to render directly is to use the 2D or 3D canvas APIs.