QtQuick OpenGL, render loop
-
So I'm writing a game using the qtquick opengl under qml example..
https://qt-project.org/doc/qt-5.0/qtquick/scenegraph-openglunderqml-main-qml.html
So I have a Client, which creates a qquickview, main.qml, and main.qml i (stupidly) replaced the examples Squircle {} with Client {}.
In other words it creates 2 clients, obviously not what i intended.
I'd like to be able to specify my own render loop. But I've tried just a, within the main thread, while (1) { m_view->update(); processEvents(); }, but the beforeRendering never ever gets called.
I don't like at all how QML's rendering loop is attaching itself into my code, i'm not sure how to fix it though.
I did take a look at the FBO qml + gl example, but i'm not sure if that's what would solve my issues.
I specifically hate all that SequentialAnimation crap in the opengl under qml example crap. It's very hacky and confusing on what's actually occurring..
Suggestions?