Get Updates By E-mail 

Article Written By:
Johann Dowa

Dealing With Incorrectly Shaped Textures In OpenGL ES

 As you may know, OpenGL ES requires that supplied textures be created in powers of 2. 

It can be a pain to convert many textures, and not wanting to do so programmer Craig Giles decided to look through some of Apple’s own source code and come up with a solution.  The eventual solution is to stretch the texture until it is a power of two, and then perform an affine transform if the texture ends up exceeding the texture size limitations.

Check out OpenGL ES Texture2D:Power of Two for the full post including code snippets and an explanation.

[Source: Journey To XNA]


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.