Tuesday, April 5, 2011

How to set up the arrays for glDrawElemetnts (OpenGL ES iPhone)?

How to wire up the values for glDrawElements? I need a simple textured square example (2 face, normals, textCoords, nothin' more).

I tried to do it (the arrays at glDrawArrays implementation works fine, but something went wrong when I create the indices and all), but the screen was empty.

Please shed me a light, I've googled the whole net now.

From stackoverflow

0 comments:

Post a Comment