QGLContext from GLXContext?



  • Is it somehow possible to create a QGLContext from GLXContext?

    Imagine an application which uses OpenGL for GPU computations and that application can be run with and without a GUI. The parts of the application which are used to run without a GUI don't need to depend upon QtGui, but it is desirable to share the OpenGL context with the parts which use QtGui.



  • Sorry i can't answer you but i have answer to your tag. What is ql?



  • [quote author="stuk" date="1292227032"]Sorry i can't answer you but i have answer to your tag. What is ql?[/quote]

    GL -> OpenGL -> Open Graphic Library



  • No, non GL but QL i refer to the tag...
    Ok, maybe is an error i correct the tag QL to the GL. Ok?

    [quote author="przemo_li" date="1292229506"][quote author="stuk" date="1292227032"]Sorry i can't answer you but i have answer to your tag. What is ql?[/quote]

    GL -> OpenGL -> Open Graphic Library[/quote]



  • Yeah. That was a typo. I guess I have Qt-initis (the tendency to start every word with the letter Q).



  • [quote author="Bradley" date="1291890381"]Is it somehow possible to create a QGLContext from GLXContext?

    Imagine an application which uses OpenGL for GPU computations and that application can be run with and without a GUI. The parts of the application which are used to run without a GUI don't need to depend upon QtGui, but it is desirable to share the OpenGL context with the parts which use QtGui.[/quote]

    What do you mean? QtOpenGL requires QtGui.



  • Hehe all qt developer have qt-init :P

    [quote author="Bradley" date="1292258519"]Yeah. That was a typo. I guess I have Qt-initis (the tendency to start every word with the letter Q).[/quote]



  • Yes, QtOpenGL requires QtGui, but not every OpenGL application requires Qt. Since part of this application won't require Qt, but will require OpenGL, it would be nice to have that part of the application create the platform-specific OpenGL context (directly, not using Qt). If the GUI part is enabled, it would request the platform-specific OpenGL context from the non-GUI part and use it.



  • Well, how about going the other way around? Namely, if GUI is enabled, then the core part asks it for a context, otherwise it goes ahead and creates one?



  • [quote author="peppe" date="1292266420"]Well, how about going the other way around? Namely, if GUI is enabled, then the core part asks it for a context, otherwise it goes ahead and creates one?[/quote]

    Yeah. This is what we are doing at the moment. I was wondering if there was a different way.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.