[SDL] Surfaces without video screen

Torsten Giebl wizard at syntheticsw.com
Wed May 7 13:20:22 PDT 2008


Hello !


> In our project, we use SDL_CreateRGBSurface a lot without a screen
>  surface (in case one uses the dedicated server).
>
>  It's only important that you define the format yourself.
>
>  Look at gfxCreateSurface() here:
>  http://openlierox.svn.sourceforge.net/viewvc/openlierox/include/GfxPrimitives.h?view=markup
>  And at getMainPixelFormat() here:
>  http://openlierox.svn.sourceforge.net/viewvc/openlierox/include/Color.h?view=markup
>  And the definition of mainPixelFormat here:
>  http://openlierox.svn.sourceforge.net/viewvc/openlierox/src/client/AuxLib.cpp?view=markup
>
>  That works great this way.

I can confirm this, too. In some of my
own projects i used it that way.

But there maybe changes in the future,
that this may not work anymore.

So using the dummy videodriver is the safest thing,
you can do.


CU


More information about the SDL mailing list