I've made a project with QT and OpenGl.
In QT paintGl() was repeatedly call I beleive, so I was able to change values outside of that function and call update() so that it would paint a new image. I also believe that it called initializeGl() as soon as you start up the program.
Now my question is:
I want that same functionality in a different program. I do not need to draw any images, etc. I just was wondering if there was a way to make a function like paintGL() that keeps being called so the application never closes. I tried just using a while(true) loop that kept my program running, but the GUI was inactive because of the while loop.
Any tips, other than threading preferably.
Thanks.