Game engine in OpenGL with GLFW and Qt?

你说的曾经没有我的故事 提交于 2019-12-04 13:53:32

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/14732930/game-engine-in-opengl-with-glfw-and-qt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!