OLD | NEW |
(Empty) | |
| 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 |
| 5 Chrome App. |
| 6 While this codelab currently targets conventional Native Client using our |
| 7 GCC + GlibC based toolchain, the techniques involved are generally |
| 8 applicable. |
| 9 |
| 10 Requirements: |
| 11 * An x86 (sorry no arm) Desktop / Laptop |
| 12 Windows, Mac, Linux, or ChromeOS browser |
| 13 |cpp_check| |
| 14 * A fast broadband connection (500MB download) |
| 15 * Can read and write C++ |
| 16 |
| 17 .. |cpp_check| raw:: html |
| 18 |
| 19 <br/><span id="cpp_compat" style="color: #cccc00" |
| 20 >Checking browser compatibility...</span><br/> |
| 21 <i id="cpp_compat2"></i> |
| 22 <script> |
| 23 var tag = document.getElementById('cpp_compat'); |
| 24 var tag2 = document.getElementById('cpp_compat2'); |
| 25 if (!('application/x-nacl' in navigator.mimeTypes)) { |
| 26 tag.innerHTML = |
| 27 'This codelab does not appear to be supported by your browser.'; |
| 28 tag.style.color = '#cc0000'; |
| 29 tag2.innerHTML = |
| 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) { |
| 34 tag.innerHTML = |
| 35 'This codelab does not appear to be supported by your browser.'; |
| 36 tag.style.color = '#cc0000'; |
| 37 tag2.innerHTML = |
| 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.'; |
| 42 } else { |
| 43 tag.innerHTML = 'This codelab appears to be supported by your browser.'; |
| 44 tag.style.color = '#00cc00'; |
| 45 } |
| 46 </script> |
OLD | NEW |