Slow loading SDL window

Started by
13 comments, last by nullsquared 17 years, 10 months ago
I don't think SDL uses DirectDraw, since it is cross-platform. I could be wrong though. But updating your drivers would be a very good idea. You never know what an outdated driver could do [grin]
hippopotomonstrosesquippedaliophobia- the fear of big words
Advertisement
Quote:Original post by SticksandStones
I don't think SDL uses DirectDraw, since it is cross-platform. I could be wrong though. But updating your drivers would be a very good idea. You never know what an outdated driver could do [grin]


SDL does not use its "own" api for graphics, and for windows I believe that it is directdraw because numerous times errors in the file "sdlerr.txt" have been like "DirectDraw: Exclusive videomode could not be set", but of course I could be wrong.
SDL identifies it's system at compile-time:
Windows:DirectDraw 5Linux:OpenGLMac OS X:OpenGL (IIRC)
Quote:Original post by agi_shi
SDL identifies it's system at compile-time:
Windows:DirectDraw 5Linux:OpenGLMac OS X:OpenGL (IIRC)


SDL does not (as yet) have an opengl backend on any system. There is a work in progress one that I haven't looked at in a while, but its not part of SDL yet. AFAIK under linux some form of X witchery is used. I don't know much about Mac os, but I don't think SDL uses openGL for its rendering there either.

Quote:Original post by SticksandStones
I don't think SDL uses DirectDraw, since it is cross-platform...


Yes it does. SDL achieves platform independance by mapping the same API (the names of functions, and their descriptions) to different platform specific functions. So SDL_SetVideoMode call will end up calling different OS functions under windows than under linux or macos. The crucial part of this is that it doesn't show up in your source code. Your source is portable across platforms, not the compiled stuff.
Quote:Original post by rip-off
Quote:Original post by agi_shi
SDL identifies it's system at compile-time:
Windows:DirectDraw 5Linux:OpenGLMac OS X:OpenGL (IIRC)


SDL does not (as yet) have an opengl backend on any system. There is a work in progress one that I haven't looked at in a while, but its not part of SDL yet. AFAIK under linux some form of X witchery is used. I don't know much about Mac os, but I don't think SDL uses openGL for its rendering there either.

Quote:Original post by SticksandStones
I don't think SDL uses DirectDraw, since it is cross-platform...


Yes it does. SDL achieves platform independance by mapping the same API (the names of functions, and their descriptions) to different platform specific functions. So SDL_SetVideoMode call will end up calling different OS functions under windows than under linux or macos. The crucial part of this is that it doesn't show up in your source code. Your source is portable across platforms, not the compiled stuff.


Oh. I always thought that it used OpenGL on non-windows systems.

This topic is closed to new replies.

Advertisement