[Development] About QML depends on opengl
song.7.liu at nokia.com
song.7.liu at nokia.com
Tue Sep 4 09:38:53 CEST 2012
Hi,
We are trying to port the mesa. But there is one question related with OpenGL.
In Linux, we can create OpengGL context using glXCreateContextAttribsARB, then glXMakeCurrent will binding this context to a window.
But we don't understand how does the GL operation such as glClearColor etc. know what's the current context for drawing ?
For example:
ctx = glXCreateContextAttribsARB( display, bestFbc, 0, True, context_attribs );
glXMakeCurrent( display, win, ctx );
glClearColor ( 1, 0.5, 0, 1 );
glClear ( GL_COLOR_BUFFER_BIT );
Thanks,
Song
-----Original Message-----
From: development-bounces+song.7.liu=nokia.com at qt-project.org [mailto:development-bounces+song.7.liu=nokia.com at qt-project.org] On Behalf Of ext Thomas McGuire
Sent: Friday, August 10, 2012 5:19 PM
To: development at qt-project.org; Han Maokun (Nokia-MP/Beijing)
Subject: Re: [Development] About QML depends on opengl
Hi,
On Friday 10 August 2012 10:56:27 song.7.liu at nokia.com wrote:
> >From the code, it seems that QML will depend on the opengl, but is
> >there a way to remove such dependency ?
>
> Because our platform doesn't support opengl yet.
It is not possible to remove the OpenGL dependency, the scenegraph code is quite deeply integrated into the QtQuick UI elements.
What you can do is use llvmpipe + mesa to get somewhat faster software rendering.
Regards,
Thomas
--
Thomas McGuire | thomas.mcguire at kdab.com | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-independent software solutions
More information about the Development
mailing list