Qt 6.11 is out! See what's new in the release
blog
Accessing advanced QOpenGLFunctions
-
Most of the calls are ok just by making
QOpenGLFunctions f(QOpenGLContext::currentContext()); f.glClear(GL_COLOR_BUFFER_BIT |GL_DEPTH_BUFFER_BIT);So my context is ok
Unfortunately, I need to call some functions that are not on the base of QOpenGLFunctions like glLoadIdentity() but they are not defined in QOpenGLFunctions so I tried something as naive as
QOpenGLFunctions_3_0 f3; f3.glLoadIdentity();or
f3.glLoadIdentity(); ((QOpenGLFunctions_3_0*)&f)->glLoadIdentity();But it crashes in both cases, do you have any tip?
Thank you in advance. -
-