开始2D游戏中的Qt [英] Starting a 2D Game in Qt

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

问题描述

我试图启动一个2D游戏中的Qt。我试图找到任何教程如何开始开发它...

i'm trying to start a 2D game in Qt. I'm trying to find any tutorials on how to start developing it...

任何好的教程,在互联网上? (如果可能的Qt 4.7 +)

Any good tutorial there on internet? (If it's possible Qt 4.7+)

推荐答案

OpenGL的本身的Qt是没有Qt的没有什么不同的Opengl。唯一的区别是你创建OpenGL窗口的方式。

OpenGl by itself in Qt is not different from Opengl without Qt. The only difference is the way you create your OpenGl window.

您需要导出的QGLWidget类和重载PaintGL-memberfunction。看看在HelloGL例子(这已经是相当广泛的)。

You need to derive the QGLWidget class and overload the PaintGL-memberfunction. Take a look at the HelloGL example (which is already quite extensive).

现在,你有你的OpenGL窗口外观正常的OpenGL教程这些都可以在互联网上。

Now that you have your OpenGl window look for normal OpenGl tutorials which are available all over the internet.

这篇关于开始2D游戏中的Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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