title: How do I replace glBegin() and related functions in OpenGL ES 2.0?
body: <p>I have OpenGL code like the following that I'd like to port to OpenGL ES 2.0:</p>
  
  <pre><code>for (surfnum=0;surfnum &lt; surftotal;surfnum++){
      for (i=0;i&lt;triNum[surfnum];i++){
          glBegin(GL_POLYGON);
          glNormal3fv(triArray[surfnum][i].normpt1);
          glVertex3fv(triArray[surfnum][i].pt1);
          glNormal3fv(triArray[surfnum][i].normpt2);
          glVertex3fv(triArray[surfnum][i].pt2);
          glNormal3fv(triArray[surfnum][i].normpt3);
          glVertex3fv(triArray[surfnum][i].pt3);
          glEnd();
          glFlush();
      }       
  }
  </code></pre>
  
  <p>OpenGL ES 2.0 lacks GL_POLYGON, glNormal3fv, glVertex3fv, glEnd, glBegin, etc., so how do I replace these functions?</p>
  
  <p>P.S.: I am doing this in Ubuntu 10.10 through an emulator.</p>