Timed rotations in QOpenGL

  • Hi,
    I am learning OpenGL with Qt. I follow a tutorial on learnopengl.com and try to code the same in Qt via QtGUI QOpenGL clasess. I got to an example with timed matrix rotation:

    glm::mat4 transform;
    transform = glm::translate(transform, glm::vec3(0.5f, -0.5f, 0.0f));
    transform = glm::rotate(transform, (float)glfwGetTime(), glm::vec3(0.0f, 0.0f, 1.0f));

    I do not see any relative method to glm::rotate with second time argument in QMatrix4x4. Is there any possibility to the same in Qt.


  • Qt Champions 2017

Log in to reply

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