Archived

This topic is now archived and is closed to further replies.

Worth writing an engine with wxWindows?

This topic is 5095 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been looking into wxWindows, and it seems to be a good idea to write me engine with it as base code, you know, for cross-platform support. But, then I would have to rewrite a lot of my code to work with their API. Also, what if i want to port to the XBox or the PS2? Would I then have to re-write my engine again? I''m just wondering if it is worth all the hasle to rewrite my base code to work with weWindows.

Share this post


Link to post
Share on other sites
I can use the wxWindow class for DirectX (on windows) and the linux version of HWND for OpenGL. It also has threading and networking too, it's not just a gui librabry, it's my way of making my engine platform (and API) independant. Look up XEngine, it used the same method. I'm still unsure if I'm going to use it or not though.

[edited by - Newfound Ajarn on January 6, 2004 2:51:43 AM]

Share this post


Link to post
Share on other sites
Most consoles are a pain in the neck to port to, since they use their own set of libraries etc. So the general rule is just to combine(encapsulate) all the OS specific functionality and put it in one place which makes it easier to rip apart later on. You''re going to have to have the same issue with XBox later on if you''re not just going to be using win32 with DirectX if you take the wxWindows route so I suggest you keep the same philosophy as above and just encapsulate all that functionality in well seperated and defined spots.

Share this post


Link to post
Share on other sites
I wouldn''t. There are several open source, cross platform libraries out there that are designed with games in mind. SDL, SLD-net, HawkNL, for example. wxWindows would be a good choice for a crossplatform editor, but IMO it''s a waste of space considering how little of it you''ll actually be using. And, I wouldn''t rely on the networking features of wxWindows for games.

Share this post


Link to post
Share on other sites
Thanks for the replies. I think I won''t use it after all. What I should do is make my own wrapper for OS stuff and link to it on build, this way, like some said, I can change it for any new platform I want the game engine to work on.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
SDL and wxWindows are two different beasts. The former is a minimal library for setting up a window, reading events, and blitting. The latter is a full-blown GUI library.

Share this post


Link to post
Share on other sites