[QtonPi] Qt Gles 2.0
Eden Harris
aussiedwarf at gmail.com
Mon Oct 15 14:25:33 CEST 2012
Hi. I admit, I have not written opengl es code before. When I looked
through the source for hellowindow I saw some code that I thought was
depreciated in gl 2.0 and so assumed it was gl 1.0.
Hellogl_es only has the single window while the es2 example has as you
say multiple top-level widgets. I am guessing this is why that example
and my program is not working. Real shame if this is true as I really
wanted something simple that would work on the pi and enable me to use
all the functionality of qt's widgets with opengl.
I also made sure that I compiled qt with gles2 enabled and that I had
128/128 memory split.
Thanks
Eden
On 15 October 2012 18:34, Samuel Rødal <samuel.rodal at digia.com> wrote:
> On 10/14/2012 04:18 PM, Eden Harris wrote:
>> Hi I have been having trying to run a qt gl app.
>>
>> I kept finding that it would fail complaining that the shaders would
>> not compile. I tried running some of the opengl example programs and
>> found only some of them would run. I found that hellowindow and
>> hellogl_es would run fine but hellogl_es2 would crash and would
>> complain that shaders would not compile as well. I decided to check
>> compatible gl versions with QGLFormat::OpenGLVersionFlags. What I
>> found was that Version 1 and 1.1 were fine but 2.0 was not supported.
>>
>> Has anyone else ben able to get hellogl_es2 or any other gl es 2.0 qt
>> program to work on the pi?
>
> I would like to point out that hellowindow is also GLES 2.0 based.
> hellogl_es2 might have issues since it's creating an embedded QGLWidget
> and I'm not sure how good the support for multiple top-level widgets /
> windows is in the eglfs plugin.
>
> Although I think hellogl_es might do the same thing...
>
> Btw, qmlscene also uses GLES 2.0, and many people have had it running on
> the Pi. It's a less complicated case than the hellogl_* variants since
> it only creates a single QWindow.
>
> --
> Samuel
>
> _______________________________________________
> QtonPi mailing list
> QtonPi at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qtonpi
More information about the QtonPi
mailing list