Results 1 to 3 of 3

Thread: Porting OpenGL to OpenGL ES

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    1

    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 ]

  2. #2
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: Porting OpenGL to OpenGL ES

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

    - HM

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    19

    Re: Porting OpenGL to OpenGL ES

    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 ]

Similar Threads

  1. Trouble porting OpenGL code to iPhone's OpenGL ES
    By vamshivakul in forum Cross API and window system integration
    Replies: 3
    Last Post: 10-26-2011, 01:27 AM
  2. Trouble porting OpenGL code to iPhone's OpenGL ES
    By vamshivakul in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 04-16-2009, 07:39 AM
  3. Porting OpenGL sw to OpenGL-ES, help needed
    By yipton in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 10-30-2004, 05:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •