[Qt-interest] QGraphicsScene - OpenGL glBegin/glEnd

Karol Krizka kkrizka at gmail.com
Mon Apr 13 06:39:42 CEST 2009


On Sun, Apr 12, 2009 at 7:11 PM, fungos <fungos at gmail.com> wrote:
> I think I hit a difficult question there.
> Can somebody just point me where Qt initializes OpenGL? And where it
> does the "update" of the context?
>
Are these two functions what you are looking for?
http://doc.trolltech.com/4.5/qglwidget.html#initializeGL
http://doc.trolltech.com/4.5/qglwidget.html#paintGL

--
Cheers,
Karol Krizka
http://www.krizka.net


> On Sat, Apr 11, 2009 at 6:14 PM, fungos <fungos at gmail.com> wrote:
>> Hi, anybody can explain me how OpenGL QGraphicsScene works with
>> glBegin/glEnd (when they happen)?
>>
>> My problem is: QMainWindow has a QWidget that is QGraphicsScene, but
>> then at initialization after all Qt code initialization, I have
>> another class that is a Renderer and its initialization calls
>> glGetString that returns an error: GL_INVALID_OPERATION is generated
>> if glGetString is executed between the execution of glBegin and the
>> corresponding execution of glEnd.
>>
>> As I'm integrating a graphics engine inside a Qt window, how can I
>> handle these kind of issues without messing too much with the graphics
>> engine?
>>
>> --
>> Animal Frontline Liberation
>>
>
>
>
> --
> Animal Frontline Liberation
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list