Dear Qt/OpenGL experts,

After the return of the 0.11 StelPainter classes I am trying again to
prepare the Scenery3D plugin for integration. This plugin was developed
mostly by a few students with much better OpenGL knowledge than I have,
but who are no longer available to me. They managed to hack around Qt4
limitations with GLee, GLU, etc, which should not be used in Qt5. I find
the used functionality in the OpenGL3.2 compatibility profile.

Qt5 brings (according to docs) easier integration of advanced OpenGL
functions. However, when I derive my classes from
QOpenGLFunctions_3_2_Compatibility, the required calls to
initializeOpenGLFunctions() in the constructors always fail. Everything
else concerning OpenGL then leads to a crash. I can compile and link
shaderPrograms, but even deleting the shaderProgram without ever using it
causes a crash.

The docs always mention dealing with the GL context and classes which are
not used by Stellarium. We use the QtDeclarative module which is now
declared deprecated, and has been replaced by QML and QtQuick1 [also
declared deprecated], and should be replaced by QtQuick2.

Does anybody know: Can I use OpenGL3.2 at all with our current deprecated
classes? Do I just have to call QOpenGLContext::create() (or something
else?) somewhere (where??) before a class calls its OpenGL3.2 functions?
Or do we need to update the StelMainView to use QtQuick2?

Kind regards,
Georg




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to