We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questioni'm trying to start a 2D game in Qt. I'm trying to find any tutorials on how to start developing it...
Any good tutorial there on internet? (If it's possible Qt 4.7+)
OpenGl by itself in Qt is not different from Opengl without Qt. The only difference is the way you create your OpenGl window.
You need to derive the QGLWidget class and overload the PaintGL-memberfunction. Take a look at the HelloGL example (which is already quite extensive).
Now that you have your OpenGl window look for normal OpenGl tutorials which are available all over the internet.
If you're using Qt for 2D games, I'd let Qt handle the OpenGL aspect of it and just use QGraphicsScene et al.
If you consider using a Qt/QML based engine, giving you the advantages of cross-platform support and many useful game components for handling multiple display resolutions & aspect ratios, animations, particles, physics, multi-touch, gestures, path finding and more (API reference), take a look at V-Play (v-play.net).
They also provide you with several tutorials for different skill levels and come with ready-to-use game templates for the most successful game genres like tower defense, platform games or puzzle games. (V-Play examples & demos)
精彩评论