Raspberry Pi EGL on X: Update 10 Apr 2013
----------------------------------------
This is an update of eglonx for Raspberry pi. Fixing some crashes on start up and
a pixel swapping error on the software conversion to 565 for drawing on to the X
window. Also added more complete handling of X window mouse and expose
events.
Fixed startup crash by replacing this:
Ximage = XGetImage(Xdsp, Xwin, 0, 0, Xgwa.width, Xgwa.height, AllPlanes, ZPixmap);
with
char *buf = (char *)malloc(Xgwa.width*Xgwa.height*2);
Ximage = XCreateImage(Xdsp,
DefaultVisual(Xdsp, DefaultScreen(Xdsp)),
DefaultDepth(Xdsp, DefaultScreen(Xdsp)),
ZPixmap, 0, buf, Xgwa.width, Xgwa.height, 16, 0);
And added this on exit:
bcm_host_deinit();
I'm using to get a photo application running that uses OpenGL ES 2.0
for all the UI, etc. Work in progress video here:
http://www.youtube.com/watch?v=jqNQ7-6Nk7QYou can get this from github at:
https://github.com/PaulHaeberli/pi-eglonxPaul H
.