Results 1 to 2 of 2

Thread: Qt and game development

  1. #1
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Question Qt and game development

    I have my simple 2D game engine that I wrote in java ( j2me ).
    So I'm planning to use it on PC ( windows / linux ) and maybe on some handhelds.
    What can Qt can provide in this context? I see only two ways: QGraphicsView and QtOpenGl.

    Can somebody explain pros and cons about those two? (fast image manipulation, rotation, flickering?, 100% same code for every platform?)

    ps: one of main things that I use: many png sprites with alpha channel.

    sorry for my english.

  2. #2
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt and game development

    QGraphicsView is good for vector graphics with good measure of user interaction, but it getting slow early (around thousand or so objects, but see 40000 chips example http://qt-project.org/doc/qt-4.8/demos-chip.html). It's strength in using qt's painter, that have lots of functionality already implemented (brushes, pens, affine transformations).

    OpenGL is OpenGL on every platform, though qt has nice wrapper classes and solid integration with the rest of the framework.

    Each way is 100% crossplatform (at least, I haven't bumped into issues).

    As for your case, I think QtOpenGL suits it better (though take a look at Qt5/QtQuick, I haven't tried it yet, but they say they extensively use OpenGL and have good perf.)

  3. The following user says thank you to lanz for this useful post:

    kr1d (26th February 2013)

Similar Threads

  1. Game Development
    By AlexanderPopov in forum General Discussion
    Replies: 6
    Last Post: 15th October 2011, 00:55
  2. game on qt
    By bibhukalyana in forum Qt Programming
    Replies: 6
    Last Post: 27th March 2011, 22:56
  3. Replies: 1
    Last Post: 22nd May 2010, 07:38
  4. IQ Game
    By qtgears in forum Qt-based Software
    Replies: 0
    Last Post: 6th October 2009, 08:24
  5. Replies: 1
    Last Post: 13th August 2009, 16:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.