🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Difference between SDL and GLUT?
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?
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
Magnwa
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement