Saturday, August 6, 2011

Porting to Linux (MeeGo)

Video corresponds to the first version of Linux (EGL, XLib, OpenGL ES 2.0) port. N900 is used for the demo and I plan to provide comparable video on N9 later, after sales start.

Pushed the source code to branch portToMeego. It uses EGL and XLib to create window and initialize GL surface. Used Qt project files, and run the code from Qt Creator. Qt SDK 1.1.2 includes support for N9 (MeeGo Harmattan), MeeGo and N900.

There is a nice example on wiki.maemo.org demonstrating how to use EGL, XLib and OpenGL ES 2.0. To run it on MeeGo devices, you'll just need to remove N900 specific call to XChangeProperty with "_HILDON_NON_COMPOSITED_WINDOW".
Comparing to iOS's EAGLContext::presentRenderBuffer (example behind the link includes also initialization), with EGL swap renderbuffer using  eglSwapBuffers, like here.