EGL in X11 window on raspberry pi


Code for EGL in X11 window on the raspberry pi is shown below.

This is experimental at present (25/07/2014) but the code is a sound proof of concept implementation of simple XPutimage bliting of EGL apps into an X11 window.

It will automatically put any egl code in an X window if you are running in X or will work as normal if not in X. The code works by changing the standard EGL library in /opt/vc to use the functions in the c code and wrap the EGL requests renaming the original library stub names.

I think lots of stuff needs change to implement input handling.

The instructions for compile are in comments at the top.
I think it will not work unless you set XSHM 0 in the defines, as th Xshm is broken.


I was going to include the code on this page but instead there is a link below. Sorry if the code is untidy but some asked for the code and I think I do not have time to do anything more for a while. So this is all you will get

Please do not forget to visit the sponsor web host site, they sell great soundproofing and have great advice if you have a noise problem.

soundproofing

eglx11.c