title: OpenGL ES (on iOS):
body: <p>I have a series of standard OpenGL instructions in this form:</p>
  
  <pre><code>glBegin(GL_TRIANGLES);
  // ...
  glNormal3fv(a); glVertex3f(a[0]*r, a[1]*r, a[2]*r);
  // ...
  glEnd();
  </code></pre>
  
  <p>I wish to run them on iOS, thus must convert them to OpenGL ES. Since OpenGL ES doesn't support glBegin() or glEnd(), I'm wrapping up the glVertex3f calls into a GLfloat vertices array followed by a glDrawArrays() call instead.</p>
  
  <pre><code>GLfloat vertices[] = {1,0,0, 0,1,0, ...};
  glEnableClientState(GL_VERTEX_ARRAY);
  glVertexPointer(3, GL_FLOAT, 0, vertices);
  glDrawArrays(GL_TRIANGLES, 0, 3);
  glDisableClientState(GL_VERTEX_ARRAY);
  </code></pre>
  
  <p>However I'm unsure how to include the specification of a normal vector (the original glNormal3fv() calls) in this ES version.</p>
  
  <p>Would someone be kind enough to exemplify the solution?</p>