• Advertisement

Archived

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

WXWindows vs SDL (which would you choose)

This topic is 5097 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''m currently working on a cross platform, networked, 3D space flight simulation/battle game and plan to use OpenGL for all my 3D needs. I''ve heard both SDL and WXWindows support cross platform windowing systems which link well with OpenGL. But which would be better for game development. Can the two be used together? I''ve browsed over both the SDL and WXWindows sites, but wanted a genuine opinion from some people who might have some hands on experience.

Share this post


Link to post
Share on other sites
Advertisement
wxWindows gets my vote. wxWindows contains a lot of functionality that replaces many platform specific calls other than window creation.

Share this post


Link to post
Share on other sites
For most programs I would recommend something like wxWindows, but for games? Definitely SDL (which by the way, also supports many other platform specific things such as multi-threading).

The official zorx website

Share this post


Link to post
Share on other sites
erm, the two aren''t mutually exclusive, iirc

wxwindows is more of a widget toolkit, isnt it?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yeah, it''s not that hard of a choice. If you want widgets and a menu bar, you use wxWindows. If not you use SDL.

No the toolkits aren''t mutually exclusive, but using them together wouldn''t have a point, so it''d just end up being a waste of time.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
No the toolkits aren''t mutually exclusive, but using them together wouldn''t have a point...
Hmm. wxWindows: cross-platform application user interface library; SDL: cross-platform multimedia library. Unless wxWindows has added CD services, image manipulation, 2D (accelerated on Windows) drawing contexts, game device input and low-level thread services since the last time I checked (which would be last night), there is a point.

Share this post


Link to post
Share on other sites
quote:
Original post by C-Junkie
erm, the two aren''t mutually exclusive, iirc

wxwindows is more of a widget toolkit, isnt it?


Depends on how you define widget toolkit... .

Xorcist: You may have to create your own WinMain on windows to prevent conflicts between the libs, but combining them has been done. Heck, I think someone even got SDL stuff working inside a wxWindows window... no links on me though.

I suspect using wxWindows for the rendering and SDL for the cd access/multithreading/etc wouldn''t be hard to implement. But I wouldn''t expect to be able to have a fullscreen SDL window and use the wxWindows library to help render as well... without a lot of pain, at least.

Universe.MilkyWay.SolSystem.Earth.Corps.Banks.WaMu.Accounts.Mike.Savings -= 0.02;

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Oluseyi
quote:
Original post by Anonymous Poster
No the toolkits aren''t mutually exclusive, but using them together wouldn''t have a point...
Hmm. wxWindows: cross-platform application user interface library; SDL: cross-platform multimedia library. Unless wxWindows has added CD services, image manipulation, 2D (accelerated on Windows) drawing contexts, game device input and low-level thread services since the last time I checked (which would be last night), there is a point.


Maybe you should be checking right now. While you''re at it, check if SDL contains routines for "image manipulation". I have a feeling you''ll be disappointed with your previous post.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Anonymous Poster
Maybe you should be checking right now. While you''re at it, check if SDL contains routines for "image manipulation". I have a feeling you''ll be disappointed with your previous post.


This was my post but it wasn''t very kind. I apologize.

My cursory glance over wxWindows showed classes like wxJoystick and wxThread. Also my definition of "image manipulation" is probably not what you want. The libraries have some significant and some insignificant points of difference but they cover a lot of the same middle ground. Trying to combine them would be more frustrating than useful.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Maybe you should be checking right now. While you''re at it, check if SDL contains routines for "image manipulation". I have a feeling you''ll be disappointed with your previous post.
You mean like SDL_image and all these libraries, many of which have attained first-class status?

You''re right, though. There is a lot of overlap between the two.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

This is irrelevant to your argument (and it''s not a rebuttal) but I''d argue that SDL_image and friends are *very* separate from SDL itself.

Share this post


Link to post
Share on other sites
Well I am most likely going to have this game running in fullscreen mode as a final product (using windowed mode mainly for debugging purposes). No real need for menus or controls. I see a lot of backing in terms of games developed with SDL, but not that many for wxWindows (in fact I couldn''t find one). Are there any good articles that compare the two? The proposal for this project will be needed shortly so I want to make sure I know which direction it''ll be going in.

Share this post


Link to post
Share on other sites
They're not very comparable, other than they wrap up the underlying OS message pump. There's dozens of libraries that do that.

For a full-screen app, wxWindows doesn't make a lot of sense, unless you want it work like the Windows Pinball game (has a windowed and full-screen mode).

I haven't used SDL much, and am a fan of wxWindows, but wx doesn't seem like a really good match for what you want.

[edited by - Magmai Kai Holmlor on February 6, 2004 11:24:58 PM]

Share this post


Link to post
Share on other sites

  • Advertisement