
March 31st, 2007, 01:07 AM
|
|
|
|
I guess the best way to compare them is to see their objectives. DirectDraw is a now deprecated video rendering API, which was part of DirectX. DirectX itself is a set of multimedia libraries, only useful on Windows.
SDL is a library for multimedia, sort of like DirectX, but it is cross-platform. In reality, it is an abstracting layer, so you can have code that works with Linux and the same for Windows.
So I guess the best way to put it is, DirectDraw is a video API that SDL could use on Windows, but SDL deals with all of multimedia, and isn't restricted to DirectDraw/Direct3D for video.
__________________
When you ask a question, be prepared to tell us: what have you tried? If you think you don't need to try anything, we will never be interested in helping you. If you agree with the link, and you refuse to answer that question, you are being a hypocrite.
Need help with broken code? Your question should be like a good bug report: (1) It has the smallest number of steps to reproduce the problem you see (2) It tells us precisely what you expected to see and (3) It tells us what you saw and how it differed from what you expected. We need all three to help you.
Want better answers? Tell us what you Googled for and what steps you took to answer your own question.
|