PDA

View Full Version : Porting OpenGL to OpenGL ES



ImJongKyu
04-24-2005, 03:34 PM
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 ]

hmwill
04-24-2005, 03:50 PM
You're right, those calls do not exist. Try starting using one of the tutorials here:
http://www.khronos.org/devu/opengles_challenge/.

- HM

dorbie
04-24-2005, 06:34 PM
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 ]