Results 1 to 4 of 4

Thread: Going from OpenGL to OpenGL ES

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2008
    Posts
    5

    Going from OpenGL to OpenGL ES

    I'm having a somewhat hard time here. I've never used ES, (and I'm not magnificent at GL, but I'm learning) and now I've got a few lines of OpenGL code that's supposed to be used by ES. Of course, some of the lines don't work and I honestly don't have a clue what to do!

    For reference's sake, the lines are:
    glClearDepth
    glLoadMatrixD

    I've also got some GLUT code that I haven't the foggiest what to do with. Any point in the right direction would be extremely helpful.

    I looked in the docs and found glClearDepthf and glClearDepthh in ES, but no reference to the original glClearDepth, and I'm not sure if it's the same thing, or even what the difference between f and x is!

    Thanks a lot for any help anybody.

  2. #2
    Senior Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    890

    Re: Going from OpenGL to OpenGL ES

    ES does not support double precision, so those APIs are replaced by single precision (f) variants.

    Read the difference spec for a comprehensive summary of the changes between GL and ES.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2008
    Posts
    5

    Re: Going from OpenGL to OpenGL ES

    Awesome! Thanks! I've only got on elittle problem cnverting a double to a GLFloat, but I'm sure I can get that knocked out.

    And the other problem... this may be a dumb question, but I'm just having a lot of trouble finding information on the topic! In the scope of GLUT and GL ES, I'm still completely lost on what to do there. I can't use the glut framework, only GL ES. Are there any resources for help with this? Thanks so much!

  4. #4
    Senior Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    890

    Re: Going from OpenGL to OpenGL ES

    Windowing system setup will be platform-specific. Check your platform's documentation.

Similar Threads

  1. Replies: 3
    Last Post: 12-22-2015, 09:48 PM
  2. Replies: 3
    Last Post: 07-09-2014, 07:19 AM
  3. OpenGL, OpenGL extensions and OpenGL shading language?
    By rakeshthp in forum OpenGL: Windows
    Replies: 4
    Last Post: 05-06-2012, 11:11 AM
  4. Replies: 4
    Last Post: 08-04-2004, 08:54 PM
  5. Replies: 2
    Last Post: 09-06-2000, 11:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean