Thanks.
My testing goes no further than glClear, but even that does not work. It
works fine in the desktop version.
Googling on this error didn help me any further.
Post by Thomas PerlPost by Wim de VriesI have asked this question before, but got no answer.
Now the issue becomes more urgent for my project.
does/should the sailfish emulator support openGL (ES)?
thanks.
[root at SailfishEmul ~]# rpm -qa | egrep '(GLES|EGL)'
mesa-llvmpipe-libEGL-9.0.2-1.2.i486
mesa-llvmpipe-libGLESv1-devel-9.0.2-1.2.i486
mesa-llvmpipe-libGLESv2-9.0.2-1.2.i486
mesa-llvmpipe-libGLESv1-9.0.2-1.2.i486
mesa-llvmpipe-libGLESv2-devel-9.0.2-1.2.i486
mesa-llvmpipe-libEGL-devel-9.0.2-1.2.i486
(note that the -devel packages are only needed for development, so on the
Emulator you don't need them)
OpenGL ES 2.0 can be used directly with Qt (QGLWidget in QtOpenGL), OpenGL
http://wiki.maemo.org/SimpleGL_Example
This example uses OpenGL ES 2.0, but you can easily modify it to use
Instead of linking against GLESv2, you link against GLESv1_CM, instead of
including GLES2/gl2.h, you include GLES/gl.h and instead of using the
EGL_OPENGL_ES2_BIT attribute, you use EGL_OPENGL_ES_BIT. You obviously
also have to replace the shader usage with fixed function pipeline
equivalents, but if you do OpenGL ES programming, you know how to do that.
This even works with Python - make sure you have python-pyside and
python-imaging installed, and you should be able to run OpenGL ES 2.0
examples like SwipEout (http://thp.io/2011/swipeout/) directly from the
console - no compiler needed, just ssh into the emulator (export
DISPLAY=:0; python swipeout.py).
HTH :)
Thomas