Hi everyone i know this has probably been said many times before.
but what im trying to do is rewrite my game engine from ground up and maybe parts of my code im trying to reuse and rewrite them etc so im starting to rewrite my level editor as it was originally written in visual c++ 6 using mfc my question is if i decide to recreate mdi with child windows what would the best way to write this but also be able to compile the source under Linux and Mac using the OS native code would it be better to use some switch for example
#if defined(OS_WIN32) or #if defined(OS_LINUX) as i have looked at wxwidgets and qt but what im looking for is performance where later i can just optimize the code
as basically once everything done i will have an game engine, that's built into the editor so you see in the editor what the game engine will show if you was running the level for example you get to preview your game lighting etc what its going to look like before you run the game to save time
Well you will probably, if it's a 3d game be using opengl. Then i would recommend using qt since it'll save you a lot of work compared to writing to native code yourself for 2 os's.
And qt has good opengl support.
well time is not an issue, as it will be open source project as for qt does not seem to use the native for windows i have not checked into Linux yet for qt
was just looking for idears so i can make the GUI atleast cross platform as i rather not use mfc or if i do use MFC have some kind of wrapper so maybe under windows it will use mfc but under linux use there native methods
WxWidgets is also a cross-platform toolkit. They claim to use a native look for the GUI on the platforms. As far I know, they did a good job on Windows. But it isn't 100% portable, some things and styles can only be used on certain OSes, but hey, that's what makes it native for the platforms!