Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Timed rotations in QOpenGL
Forum Updated to NodeBB v4.3 + New Features

Timed rotations in QOpenGL

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 716 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • thompsonxT Offline
    thompsonxT Offline
    thompsonx
    wrote on last edited by
    #1

    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.

    Thx.

    kshegunovK 1 Reply Last reply
    0
    • thompsonxT thompsonx

      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.

      Thx.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      http://doc.qt.io/qt-5/qtransform.html

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved