TextureUpload
Last Revision: | Version 1.0, 2010-05-19 Demonstrates the fundamental techniques to obtain optimal texture upload performance. |
Build Requirements: | Mac OS X v10.6 or later, Xcode 3.1 or later |
Runtime Requirements: | Mac OS X v10.6 or later |
This sample code demonstrates the fundamental techniques to obtain optimal texture upload performance. There are two levels of optimizations here:
- The Apple Client Storage extension allows you to eliminate a texture copy at the client.
- When working with non-power-of-two texture target (GL_TEXTURE_RECTANGLE_EXT), you may use the Rectangle Texture extension and the Apple Texture Range extension to further optimize texture upload performance.
Note, the first level of optimization applies to both GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE_EXT targets; the second level of optimization applies to the GL_TEXTURE_RECTANGLE_EXT target only.
See the OpenGL Programming Guide for Mac OS X for more information, in particular, the chapter of "Best Practices for Working with Texture Data".
Copyright © 2010 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2010-05-19