1 Learn the basics of using PPAPI to do 2D graphics from
2 a C++ program running in Native Client.
3 Modify our sample to turn fire into water.
4 Develop inside Google Chrome, using our NaCl Development Environment
6 While this codelab currently targets conventional Native Client using our
7 GCC + GlibC based toolchain, the techniques involved are generally
11 * An x86 (sorry no arm) Desktop / Laptop
12 Windows, Mac, Linux, or ChromeOS browser
14 * A fast broadband connection (500MB download)
15 * Can read and write C++
17 .. |cpp_check| raw:: html
19 <br/><span id="cpp_compat" style="color: #cccc00"
20 >Checking browser compatibility...</span><br/>
21 <i id="cpp_compat2"></i>
23 var tag = document.getElementById('cpp_compat');
24 var tag2 = document.getElementById('cpp_compat2');
25 if (!('application/x-nacl' in navigator.mimeTypes)) {
27 'This codelab does not appear to be supported by your browser.';
28 tag.style.color = '#cc0000';
30 'You do not appear to be running a browser such as ' +
31 'Google Chrome which supports Native Client ' +
32 'or you have disabled Native Client.';
33 } else if (navigator.userAgent.search(' arm') >= 0) {
35 'This codelab does not appear to be supported by your browser.';
36 tag.style.color = '#cc0000';
38 'You appear to be running on an ARM based CPU. ' +
39 'While Native Client does support ARM, ' +
40 "our developer environment's GCC + GlibC based toolchain " +
41 'does not, at this time. Sorry.';
43 tag.innerHTML = 'This codelab appears to be supported by your browser.';
44 tag.style.color = '#00cc00';