Jump to content
  • Advertisement

Archived

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

Xorcist

WXWindows vs SDL (which would you choose)

This topic is 5279 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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!