It's basically to make a platform-independent way to initialize OpenGL and to handle swapping the buffer to the screen. So, sorta like GLUT in some ways, but without all of the old cruft.
Basically, if you've ever done OpenGL on a PC and had to deal with wgl (Windows), glX (Linux/BSD), CGL/AGL/NSOpenGL (Mac), then EGL is the platform-independent way to do all of that.
freeglut+libEGL+libGLU ports
- BlueCrab
- The Crabby Overlord
- Posts: 5658
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: freeglut+libEGL+libGLU ports
Thanks! I'll work on the libGLU port for now and see about the rest later.BlueCrab wrote:@bogglez: Ahem...
When I said I'd work on it, I did mean I would work on it. And now, it's done.
I will request that if you're going to do a bunch of stuff to GL and splitting it apart, that it might be a good idea to keep around the minimal implementations of GLU/GLUT that we have now (as a separate port). Sometimes minimal is all that's needed, after all. Also, be sure to mark yourself as the maintainer in the portfiles.
No worries! Yup, that's the idea.Lerabot wrote: Sorry for my dumb question, but is EGL main purpose is to provide OS-free implementation of openGL?
Just trying to see what is EGL about..
I'm currently working on support for libglut and potentially libSDL in the future.
In order to get OpenGL support these libraries often use libEGL, so I implemented that first.
This also allows us to use platform-independent code for creating an OpenGL context.
With libEGL in place libraries that use it have a standard way to ask what OpenGL version is supported, ask for a framebuffer, etc. so we don't need to modify their code.
For example I ported freeglut in a few hours by copying the android folder, s/android/dreamcast, removed android specific functions and I was done.
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream