Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    OpenGL:Position of objects Hellogl example

    General and Desktop
    1
    1
    437
    Loading More Posts
    • 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.
    • A
      Andre005 last edited by

      Hello,

      i start with OpenGL to draw some 3D objects.

      im try to understand the Hellogl example:
      http://qt-project.org/doc/qt-5/qtopengl-hellogl-example.html#qtlogo-class

      its clear that with this line of code:
      @
      RectTorus body(geom, 0.20, 0.30, 0.1, divisions);
      @

      the width, heigh and depth is of the body object is set.

      But where in the code is the position of the logo object is set in the scene?

      Thx
      Andre

      1 Reply Last reply Reply Quote 0
      • First post
        Last post