OpenGL中具有GLFW和Qt的游戏引擎? [英] Game engine in OpenGL with GLFW and Qt?

查看:310
本文介绍了OpenGL中具有GLFW和Qt的游戏引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我提出了类似的问题用于游戏开发的Qt和OpenGL

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

目前,我不确定我应该怎么做.我经常读到,不建议在游戏中使用Qt,而GLFW更适合此任务.我不能完全确定为什么,但是我认为如果选择GLFW,我将处于安全状态.

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.

但是我想使用Qt作为编辑器.像许多其他游戏引擎一样,编辑器应该是所见即所得.这样您就可以在任何给定的时间跳入游戏.

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.

是否可以在同一项目中使用Qt和GLFW?

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

推荐答案

是否可以在同一项目中使用Qt和GLFW?

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

不.但是你为什么呢?您可以将GLFW用于独立引擎,将Qt用于编辑器.甚至可以用自定义内容替换QCoreApplication事件循环.只需确保您的代码与特定框架之间的联系不是太紧密.

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.

这篇关于OpenGL中具有GLFW和Qt的游戏引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆