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. porting from freeglut to qt
Forum Updated to NodeBB v4.3 + New Features

porting from freeglut to qt

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 560 Views 2 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.
  • L Offline
    L Offline
    lazuli_beast
    wrote on last edited by
    #1

    I have inherited a functioning application written in fortran90 that uses freeglut to render a scene. What steps do I need to take to port this from freeglut to qt? I am an absolute beginner so any help is appreciated. Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      1. If you don't know C++, start by learning C++
      2. Learn OpenGL
      3. Understand what is done to render the scene in your Fortran application
      4. Learn about the Qt OpenGL classes
      5. Translate the FreeGlut logic to Qt classes / C++ code
      6. Get a set of reference values from your Fortran application to render the scene
      7. Use them to render the same scene with Qt
      8. Plug the business logic to feed data to your scene

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        That's really a loaded question. What does porting to Qt buy you that you need? Freeglut is well supported in ISO C++ so IMHO porting to Qt without a need to is creating work.

        I light my way forward with the fires of all the bridges I've burned behind me.

        L 1 Reply Last reply
        0
        • Kent-DorfmanK Kent-Dorfman

          That's really a loaded question. What does porting to Qt buy you that you need? Freeglut is well supported in ISO C++ so IMHO porting to Qt without a need to is creating work.

          L Offline
          L Offline
          lazuli_beast
          wrote on last edited by lazuli_beast
          #4

          @Kent-Dorfman You're right about that, sorry. I need to add a GUI. There is no GUI in the existing application, only keybindings. From what I have read, and looking through the API documentation, freeglut has limited capability for doing that.

          @SGaist That about covers it... I need conceptual help on step 5, translating freeglut to Qt. The program uses the F03GL interface to send data from fortran to openGL. F03GL seems to work together with GLUT, so if I remove it then how can I interface my fortran with openGL?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            I may have misunderstood something. I thought you were porting your whole application to C++.

            Are you in fact just trying to switch the GUI toolkit ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            L 1 Reply Last reply
            0
            • SGaistS SGaist

              I may have misunderstood something. I thought you were porting your whole application to C++.

              Are you in fact just trying to switch the GUI toolkit ?

              L Offline
              L Offline
              lazuli_beast
              wrote on last edited by lazuli_beast
              #6

              @SGaist Yes. I would like to preserve the fortran code as much as possible.

              I think I will close this and ask more specific questions in another thread. Thanks

              1 Reply Last reply
              0

              • Login

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