[Qt-interest] QGraphicsScene - OpenGL glBegin/glEnd

fungos fungos at gmail.com
Mon Apr 13 04:11:07 CEST 2009


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?

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



More information about the Qt-interest-old mailing list