qtopenglgame-engineglfw

Game engine in OpenGL with GLFW and Qt?


I started a similar question several months ago Qt and OpenGL for game development

At the moment I am not really sure what I should do. I often read that it is not recommended to use Qt for games, instead GLFW would be better suited for this task. I am not completely sure why but I think I will be on the safe side if I choose GLFW.

But I want to use Qt for the editor. The editor should be WYSIWYG, like many other game engines are. So that you can jump into the game at any given time.

Is it possible to use Qt and GLFW in the same project?


Solution

  • Is it possible to use Qt and GLFW in the same project?

    No. But why would you? You can use GLFW for your standalone engine and Qt for the editor. It's even possible to replace the QCoreApplication event loop with something custom. Just make sure that your code is not too tightly coupled to a certain framework.