Results 1 to 7 of 7

Thread: Is this possible with qt?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Nathan2222 Guest

    Thumbs down Re: Is this possible with qt?

    I probably misunderstood the purpose of this forum. I thought it was a help forum for newbies but considering the reply rate i shouldn't have expected anything else. No offence but that's what i've seen

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Is this possible with qt?

    The purpose of the forum is to support Qt Newbies. The is no service level agreement that requires answers from volunteers within minutes, hours, or even at all.

    Qt is a cross-platform library not a compiler. If you can build C++ code for your engine/game that uses all those libraries and components without the Qt library then you can almost certainly build the same program including the Qt library for some components. You will need to use a consistent C++ compiler toolchain across the project's C++ components, including Qt. There also some documented collisions (and workaround) between Qt and Boost Signals if they are also present somewhere it that pile of pieces.

    If you want to use DirectX directly in a program that is also using the Qt library nothing is stopping you (in some configurations Qt5 uses a DirectX abstraction layer (ANGLE) itself). Of course you will have to develop for Windows only and you will likely have to use Microsoft's SDK and compilers (possibly counter to your "Platform: 2. Others later on" goal). Ogre3d abstracts some of that away but requires Microsoft's tool chain on Windows AFAICT.

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: Is this possible with qt?

    What kind of answer do you want ? If you are able to code all those things on your list, then using Qt as a gui layer will be trivial for you.
    If the only thing you are asking is "Is it possible to use DirectX in Qt ?" then why bother posting all those fancy engine features ? Yes it is possible to use DirectX, even a quick google query "directx in Qt" will return some useful links. Be more specific if you want reasonable answers, and please, don't be rude, because this is a community forum, nobody is obliged to even read your posts.

  4. #4
    Nathan2222 Guest

    Smile Re: Is this possible with qt?

    Sorry about the rudeness. Sorry.

    Quote Originally Posted by ChrisW67 View Post

    If you want to use DirectX directly in a program that is also using the Qt library nothing is stopping you (in some configurations Qt5 uses a DirectX abstraction layer (ANGLE) itself). Of course you will have to develop for Windows only and you will likely have to use Microsoft's SDK and compilers (possibly counter to your "Platform: 2. Others later on" goal). Ogre3d abstracts some of that away but requires Microsoft's tool chain on Windows AFAICT.
    If there isn't a possibility of integrating both opengl and directx support like ogre3d does, then it looks like i'll have to settle for windows only


    Added after 6 minutes:


    Just read a thread on the ogre3d forums on how it manages both directx and opengl. It says it uses separate rendersystem plugins for dx and opengl. I don't know if that is feasible for a game engine
    Last edited by Nathan2222; 4th December 2013 at 00:39.

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Is this possible with qt?

    If you use Ogre3d's abstraction, and not DirectX directly, then you get whatever features that Ogre provides on whatever platforms it is supports them. Plugins, like the DirectX/OpenGL support in Ogre, are dynamically loaded implementations of a common abstract interface. This is a very common technique you can implement yourself (also used inside the Qt library).

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Is this possible with qt?

    Quote Originally Posted by Nathan2222 View Post
    Just read a thread on the ogre3d forums on how it manages both directx and opengl. It says it uses separate rendersystem plugins for dx and opengl. I don't know if that is feasible for a game engine
    Most serious game engines do that. OpenGL is needed for console and mobile gaming but it is badly implemented on Windows, so they need Direct3D there.

    As ChrisW67 said, Qt also works around that Windows limitation by using ANGLE, thus only having to support OpenGL on all platforms.

    Cheers,
    _

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
  •  
Qt is a trademark of The Qt Company.