Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: glx or egl

Hybrid View

  1. #1

    glx or egl

    I heard that glx will be deprecated and replaced by egl. Is that true?

    I have asked this question on khronos forum, but no one answer me.

    Sometimes I write OpenGL on Windows, but most of the time I write OpenGL on FreeBSD. But FreeBSD is not Linux. I am sorry to post it here.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948
    Will it be? Maybe. But not anytime soon. Khronos has announced no initiative towards this goal.

  3. #3
    That will be a little sad. I don't know how to start egl on X, Could you give me some clues?

  4. #4

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Apr 2009
    Posts
    578
    Quote Originally Posted by Alfonse Reinheart
    You don't. That's what I just said; there is no EGL on X.
    That is down right false. There are platforms that use X11 and use EGL (for example N9, N900, Maemo, MeeGo, etc). Ubuntu on Tegra is X11 with EGL. These same platforms do NOT have glx.

    Though in all honesty, EGL really does not buy you anything; it just means different startup kludge code to create a GL context, etc. The specification is more focused on GLES1/2/3 than desktop GL. Indeed, although EGL has a mechanism to create a GL context, it lacks all of the goodies found in wgl/glxCreateContexAttribsARB.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    197
    Quote Originally Posted by kRogue View Post
    Indeed, although EGL has a mechanism to create a GL context, it lacks all of the goodies found in wgl/glxCreateContexAttribsARB.
    You should take a look at EGL_KHR_create_context, I think it covers everything glx can do.

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Apr 2009
    Posts
    578
    Indeed it does.

  8. #8
    Thank you!

  9. #9
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    Quote Originally Posted by Alfonse
    You don't. That's what I just said; there is no EGL on X.
    That is not exactly true. AFAIK, it may still be true talking about proprietary drivers and it may very well be true with the X version current FreeBSD versions provide, but it's not true for any X based OS in general. Mesa implements everything you need to setup a context using EGL and there are projects that actually do it. For instance, KDE's KWin supports EGL context creation while still using GL2 afterwards (not GLES2). The main KWin dev elaborates in his blog. In addition, there is a proposal to deprecate GLX on Linux so EGL should eventually be your goto solution. For an additional scoop you may refer to groovounet's blog. Although I don't think it's anywhere near being a good resource, Phoronix has also "reported" on several occasions about EGL being actively used in Linux (and thus X based) environments.

    Incidentally, after Wayland has been adopted, and I'm sure it will be at some point, EGL will be everything you need if AMD and NVIDIA catch up.

  10. #10
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    197
    There was also a talk about this on the XDC 2012, you can find it on YouTube.

Posting Permissions

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