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![]()
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![]()
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.
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.
Sorry about the rudeness.Sorry.
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.
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).
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,
_
Bookmarks