[Qt-interest] GLUT to Qt

Karol Krizka kkrizka at gmail.com
Sat Apr 18 19:14:36 CEST 2009


On Saturday 18 April 2009 07:00:33 ami guru wrote:
> Hello forum,
>
>
> I am trying to convert a glut applicaiton to the qglwidget application
>
> I have the folllowing queries.
>
> Does the glutSwapbuffers and updateGL() means same conceptually?
>
Not exactly. updateGL() updates your application in the sense that it calls 
drawGL(), where you perform the drawing to the offscreen buffer or update 
any animations. And then it swaps the buffers by calling 
QGLWidget::swapBuffers(), if autoBufferSwap is set to true.

glutSwapBuffers() just swaps the two buffers and it is equivalent to 
QGLWidget::swapBuffers().

At least that is my understanding after reading the documentation for 
QGLWidget.

--
Cheers,
Karol Krizka



More information about the Qt-interest-old mailing list