Iphone – How to generate mipmap images in OpenGL ES

iphoneopengl-es

What is the equivalent function of gluBuild2DMipmaps() in OpenGL ES on an iPhone?

Best Solution

glGenerateMipmapOES(GL_TEXTURE_2D);

document http://www.khronos.org/opengles/sdk/docs/man/glGenerateMipmap.xml