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....@qt-project.org 
[mailto:development-bounces+song.7.liu=nokia....@qt-project.org] On Behalf Of 
ext Thomas McGuire
Sent: Friday, August 10, 2012 5:19 PM
To: development@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....@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.mcgu...@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
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to