Great! this works!
I simply inserted “putenv(“SDL_VIDEODRIVER=dummy”);” before calling
SDL_Init(…) to completely avoid opening a blank window.
Thanks for your help!
Best,
-nicolasFrom: brian.ripoff@gmail.com (Brian Barrett)
From: Torsten Giebl
…
I simply inserted “putenv(“SDL_VIDEODRIVER=dummy”);” before calling
SDL_Init(…) to completely avoid opening a blank window.
For better portability, use SDL_putenv instead. On platforms that have
putenv, it just “#define SDL_putenv putenv”, and on those that don’t
have putenv, it simulates it for SDL only. It won’t work in the
general sense, but those using SDL_getenv, like SDL itself, will see
the variables you set that way, so for SDL_VIDEODRIVER, it’ll do what
you want.On Wed, Jan 7, 2009 at 3:17 PM, Nicolas Bredeche wrote:
–