Jump to content
  • Advertisement

Archived

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

Dauntless

Difference between SDL and GLUT?

This topic is 6091 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 know that SDL is sort of like the access layer to initialize control devices and a few other things, but does it handle graphics as well? I''m confused because I was browsing Programming for Linux Games, and saw a chapter about using SDL instead of GLUT. How exactly would that work since I thought SDL didn''t do any graphics work?

Share this post


Link to post
Share on other sites
Advertisement
SDL DOES do graphics work. Or , more accurately, it is an abstraction layer for Xlib, DirectX, etc depending on what you target it to. SDL is a replacement for GLUT, and I would recommend it. (Though, it is not , from what I gather, a drop-in replacement.)

Magnwa

Share this post


Link to post
Share on other sites
SDL works in windows, Mac OS, and PlayStation 2 (although I think you need ps2linux, not sure)
but you wont find many (if at all) tutorials and books on "SDL for Windows", it is more targeted towards the Linux market, its good if you want (semi) instant portability from Linux to Windows, but I would definitely recomend learning DirectX first, because, DirectX is so phreaking complicated compared to SDL, that porting from Windows DirectX to Linux SDL is almost painless, I have to say, SDL is sweet

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!