Archived

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

Dauntless

Difference between SDL and GLUT?

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
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