Porting OpenGL to OpenGL ES

Hi, I’m beginner OpenGL & OpenGL ES
I’m trying to port OpenGL source to OpenGL ES.
But, glBegin and glEnd calls do not exist in OGLES.
Hellp Me.

        glBegin(GL_TRIANGLES);
          glNormal3fv(f->normal);
            for (i=0; i<3; ++i) {
               glNormal3fv(normalL[3*p+i]);
               glVertex3fv(mesh->pointL[f->points[i]].pos);
          }
        glEnd();

[ April 25, 2005: Message edited by: JongKyu ]

[ April 25, 2005: Message edited by: JongKyu ]

You’re right, those calls do not exist. Try starting using one of the tutorials here:
http://www.khronos.org/devu/opengles_challenge/.

  • HM

You’ll have to use vertex arrays for everything you draw. Even the vestigial glNormal glColor etc are just for setting global attributes when not otherwise specified with array data.

[ April 24, 2005: Message edited by: dorbie ]

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.