| OLD | NEW |
| 1 .. _devguide-coding-3D-graphics: | 1 .. _devguide-coding-3D-graphics: |
| 2 | 2 |
| 3 .. include:: /migration/deprecation.inc |
| 4 |
| 3 ########### | 5 ########### |
| 4 3D Graphics | 6 3D Graphics |
| 5 ########### | 7 ########### |
| 6 | 8 |
| 7 Native Client applications use the `OpenGL ES 2.0 | 9 Native Client applications use the `OpenGL ES 2.0 |
| 8 <http://en.wikipedia.org/wiki/OpenGL_ES>`_ API for 3D rendering. This document | 10 <http://en.wikipedia.org/wiki/OpenGL_ES>`_ API for 3D rendering. This document |
| 9 describes how to call the OpenGL ES 2.0 interface in a Native Client module and | 11 describes how to call the OpenGL ES 2.0 interface in a Native Client module and |
| 10 how to build an efficient rendering loop. It also explains how to validate GPU | 12 how to build an efficient rendering loop. It also explains how to validate GPU |
| 11 drivers and test for specific GPU capabilities, and provides tips to help ensure | 13 drivers and test for specific GPU capabilities, and provides tips to help ensure |
| 12 your rendering code runs efficiently. | 14 your rendering code runs efficiently. |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 * **Don't read data from the GPU.** Don't call ``glReadPixels``, as it is slow. | 523 * **Don't read data from the GPU.** Don't call ``glReadPixels``, as it is slow. |
| 522 | 524 |
| 523 * **Don't update a small portion of a large buffer.** In the current OpenGL ES | 525 * **Don't update a small portion of a large buffer.** In the current OpenGL ES |
| 524 2.0 implementation when you update a portion of a buffer (with | 526 2.0 implementation when you update a portion of a buffer (with |
| 525 ``glSubBufferData`` for example) the entire buffer must be reprocessed. To | 527 ``glSubBufferData`` for example) the entire buffer must be reprocessed. To |
| 526 avoid this problem, keep static and dynamic data in different buffers. | 528 avoid this problem, keep static and dynamic data in different buffers. |
| 527 | 529 |
| 528 * **Don't call glDisable(GL_TEXTURE_2D).** This is an OpenGL ES 2.0 | 530 * **Don't call glDisable(GL_TEXTURE_2D).** This is an OpenGL ES 2.0 |
| 529 error. Each time it is called, an error messages will appear in Chrome's | 531 error. Each time it is called, an error messages will appear in Chrome's |
| 530 ``about:gpu`` tab. | 532 ``about:gpu`` tab. |
| OLD | NEW |