porting from freeglut to qt
-
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
-
Hi and welcome to devnet,
- If you don't know C++, start by learning C++
- Learn OpenGL
- Understand what is done to render the scene in your Fortran application
- Learn about the Qt OpenGL classes
- Translate the FreeGlut logic to Qt classes / C++ code
- Get a set of reference values from your Fortran application to render the scene
- Use them to render the same scene with Qt
- Plug the business logic to feed data to your scene
-
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.
-
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.
@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?
-
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 ?
-
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 ?
@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