[SailfishDevel] OpenGL Under Selica QML
david.greaves at jolla.com
Wed Jan 22 10:59:55 UTC 2014
On 22/01/14 08:37, Wim de Vries wrote:
> Some time ago Thomas Perl was so kind to supply us with an example 'OpenGL Over
> It uses the afterRendering() signal.
> I am trying to use the beforeRendering() signal (including
> setClearBeforeRendering(false)), but I get no OpenGL output.
> It works with standard (non-Selica) QML.
> I have the strong feeling that this is impossible because the ApplicationWindow,
> Page or other Silica items do paint the whole screen, overwriting the OpenGL area.
> Am I right?
> If yes, is there a way to get around it?
> Basically I want the (Silica) QML painted (partly transparent) over the OpenGL.
The other option is to render to an FBO and then assign that to a QML item
AFAIUI it's slightly lower performance but it does give you total control over
layering your GLES window into your QML.
More information about the Devel