QtQuick OpenGL, render loop

  • So I'm writing a game using the qtquick opengl under qml example..


    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..


Log in to reply

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