Draw Sphere - order of vertices
问题 I would like draw sphere in pure OpenGL ES 2.0 without any engines. I write next code: int GenerateSphere (int Slices, float radius, GLfloat **vertices, GLfloat **colors) { srand(time(NULL)); int i=0, j = 0; int Parallels = Slices ; float tempColor = 0.0f; int VerticesCount = ( Parallels + 1 ) * ( Slices + 1 ); float angleStep = (2.0f * M_PI) / ((float) Slices); // Allocate memory for buffers if ( vertices != NULL ) { *vertices = malloc ( sizeof(GLfloat) * 3 * VerticesCount ); } if ( colors !