Hacker News new | ask | show | jobs
by johnvega 1699 days ago
"For most cases, you do all the actual rendering work in GL or GLES contexts, which you create with WGL, CGL, GLX, or EGL, depending on your platform.

GL and GLES do the actual rendering. EGL and friends are basically just the glue layer to get things to the screen. (Well, to the window manager)"

https://www.reddit.com/r/opengl/comments/11q0oz/what_is_the_...

1 comments

> EGL and friends are basically just the glue layer to get things to the screen. (Well, to the window manager)"

EGL can also be used directly with kernel mode setting and buffer management. No window managers necessary!

A simple example I found:

https://github.com/siro20/XlessEGL/blob/master/eglkms.c

SDL2 actually supports KMS so a number of games can run without a display server without any modifications.
That's freaking awesome. I had no idea, is this a recent addition? I've read SDL source code some years ago and I remember seeing a X11 implementation only.